Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Snippets-C++] Added two snippets from #209 #225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
majvax merged 24 commits into quicksnip-dev:main from majvax:snippets-c++
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e93bcac
[C++] added snippet
majvax Jan 1, 2025
2a6b1e2
Merge remote-tracking branch 'origin/snippets-c++' into snippets-c++
majvax Jan 1, 2025
aad3f79
[C++] added 3 snippets for string.
majvax Jan 1, 2025
f472a29
Added missing chrono header
majvax Jan 2, 2025
31b43b5
fixed tags
majvax Jan 2, 2025
29112d8
Merge remote-tracking branch 'origin/snippets-c++' into snippets-c++
majvax Jan 2, 2025
4638879
fixed exemple needing std=c++20
majvax Jan 2, 2025
98ddffc
Fixed Usage to accommodate to new guidelines
majvax Jan 2, 2025
aebefde
Fixed all tags + type
majvax Jan 3, 2025
d76dbfd
Revert "Fixed all tags + type"
majvax Jan 3, 2025
c188670
Merge remote-tracking branch 'upstream/main' into snippets-c++
majvax Jan 3, 2025
9364abb
Fixed type and all tags
majvax Jan 3, 2025
3a99176
fixed gh check failing
majvax Jan 3, 2025
c0d6f04
Update consolidated snippets
actions-user Jan 3, 2025
1dd6a8f
Merge branch 'dostonnabotov:main' into snippets-c++
majvax Jan 3, 2025
fce087f
Update consolidated snippets
actions-user Jan 3, 2025
a959e95
Update consolidated snippets
actions-user Jan 3, 2025
4708bd9
Merge remote-tracking branch 'origin/main' into snippets-c++
majvax Jan 4, 2025
112302e
Revert "Merge remote-tracking branch 'origin/main' into snippets-c++"
majvax Jan 6, 2025
60496ec
Merge remote-tracking branch 'origin/main' into snippets-c++
majvax Jan 6, 2025
812842f
Update consolidated snippets
actions-user Jan 6, 2025
1fbaec8
Merge remote-tracking branch 'origin/main' into snippets-c++
majvax Jan 10, 2025
7c0ca05
added two snippets from #209
majvax Jan 10, 2025
da7b75c
resolve check not passing
majvax Jan 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed all tags + type
  • Loading branch information
majvax committed Jan 3, 2025
commit aebefdeb709bcf2cb4efea5062b266548d9fd0b1
2 changes: 1 addition & 1 deletion snippets/cpp/array-manipulation/filter-vector.md
View file Open in desktop
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
View file Open in desktop
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
View file Open in desktop
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
View file Open in desktop
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
View file Open in desktop
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
View file Open in desktop
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
View file Open in desktop
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
View file Open in desktop
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: cpp,array,reverse,utility
tags: array,reverse,c++20
---

```cpp
Expand Down
2 changes: 1 addition & 1 deletion snippets/cpp/string-manipulation/split-string.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Split String
description: Splits a string by a delimiter
author: saminjay
tags: cpp,string,split,utility
tags: string,split,c++23
---

```cpp
Expand Down
2 changes: 1 addition & 1 deletion snippets/cpp/string-manipulation/transform.md
View file Open in desktop
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

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /