Skip to content

Commit

Permalink
Fixed type and all tags
Browse files Browse the repository at this point in the history
  • Loading branch information
majvax committed Jan 3, 2025
1 parent c188670 commit 9364abb
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion snippets/cpp/array-manipulation/filter-vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Title: Filter Vector
Description: Filters a vector using a predicate function.
Author: majvax
Tags: cpp,array,filter,utility,c++23
Tags: array,filter,c++23
---

```cpp
Expand Down
4 changes: 2 additions & 2 deletions snippets/cpp/array-manipulation/transform-vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Title: Transform Vector
Description: Transforms a vector using a function.
Author: majvax
Tags: cpp,array,transform,utility,,c++23
Tags: array,transform,c++23
---

```cpp
Expand All @@ -22,5 +22,5 @@ auto transform(const std::vector<T>& vec, F&& transformer) {
// Usage:
std::vector<int> vec = {1, 2, 3, 4, 5};
std::vector<int> transformed = transform(vec, [](int i){ return i * 2; });
// transformed containes 2, 4, 6, 8, 10
// transformed contains 2, 4, 6, 8, 10
```
2 changes: 1 addition & 1 deletion snippets/cpp/file-handling/find-files-recursive.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Title: Find files
Description: Find all the files in a directory and subdirectories using a predicate function.
Author: majvax
Tags: cpp,filesystem,file_search,c++17
Tags: filesystem,file_search,c++17
---

```cpp
Expand Down
2 changes: 1 addition & 1 deletion snippets/cpp/file-handling/find-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Title: Find files
Description: Find all the files in a directory using a predicate function.
Author: majvax
Tags: cpp,filesystem,file_search
Tags: filesystem,file_search,c++17
---

```cpp
Expand Down
2 changes: 1 addition & 1 deletion snippets/cpp/file-handling/list-directories.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Title: List Directories
Description: Lists all the directories in a path.
Author: majvax
Tags: cpp,filesystem,directories,c++17
Tags: filesystem,directories,c++17
---

```cpp
Expand Down
2 changes: 1 addition & 1 deletion snippets/cpp/string-manipulation/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Filter
description: Filter a string with a predicate function
author: majvax
tags: cpp,string,utility,filtering,c++23
tags: string,filtering,c++23
---

```cpp
Expand Down
2 changes: 1 addition & 1 deletion snippets/cpp/string-manipulation/palindrome.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Palindrome
description: Check if a string is a palindrome or not.
author: majvax
tags: cpp,string,utility,c++23
tags: string,c++23
---

```cpp
Expand Down
2 changes: 1 addition & 1 deletion snippets/cpp/string-manipulation/reverse-string.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Reverse String
description: Reverses the characters in a string.
author: Vaibhav-kesarwani
tags: array,reverse
tags: array,reverse,c++23
---

```cpp
Expand Down
2 changes: 1 addition & 1 deletion snippets/cpp/string-manipulation/transform.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Transform
description: Transform a string with a function
author: majvax
tags: cpp,string,utility,transform,c++23
tags: string,transform,c++23
---

```cpp
Expand Down

0 comments on commit 9364abb

Please sign in to comment.