Commit Graph

156 Commits

Author SHA1 Message Date
Anthony Calandra
b6c4515108 Add std::sample to C++17 section. 2023-02-17 17:28:14 -05:00
Anthony Calandra
e2f9058ca7 Add constinit specifier. 2023-02-17 17:27:56 -05:00
Anthony Calandra
0dd38f0bad Improve constexpr section by providing a small explanation of one of the snippets and that evaluations MAY happen at compile-time. 2023-02-17 17:03:16 -05:00
clepz
40b3823256 fallthrough explanation and example are fixed. (#115)
* fallthrough explanation and example are fixed.

* Sentence typo fixed and written more concisely.
2022-11-01 12:53:49 -04:00
Arsenic
bd4cb84e80 C++17: Add __has_include operator (#112) 2022-03-19 12:10:40 -04:00
dimalosev0605
cb50e8e5a6 Update CPP11.md (#109)
* Update CPP11.md

semicolons absence

* Update README.md

semicolons absence
2022-02-23 10:54:35 -05:00
Anthony Calandra
1f1461ecfc Update CONTRIBUTING.md
Remove the note about README.md automatically changing.
2022-02-21 14:54:25 -05:00
Anthony Calandra
2da0071af0 Trigger workflows when pushing or opening PRs to the master branch. 2022-02-21 14:42:05 -05:00
Anthony Calandra
8455faca6a Merge branch 'master' of github.com:AnthonyCalandra/modern-cpp-features into master 2021-12-03 18:51:14 -05:00
Anthony Calandra
a39f7b8dde Update license year to 2022. 2021-12-03 18:50:55 -05:00
Chengqi Deng
1343f5eeef Auto generate readme (#100)
* Auto generate readme provided by @KinglittleQ
2021-12-03 18:48:04 -05:00
Dmitry Tsarevich
c72f2796c0 Proofreading and fix of the link (#103) 2021-09-29 18:51:54 -04:00
Hriday Sharma
39f2281bbf Changes in Readme (#101)
* Changes in Readme

* Changes in CPP Files
2021-07-19 13:00:52 -04:00
Anthony Calandra
8fedee0b8a Merge pull request #98 from aesophor/likely-unlikely
C++20: [[{,un}likely]]: fix the position of attributes in example (#97)
2021-05-15 11:59:06 -04:00
Marco Wang
76138c2a49 C++20: [[{,un}likely]]: fix the position of attributes in example (#97) 2021-05-15 11:27:07 +08:00
Dave
17f4bc150c Added raw string literals to C++11 features (#96)
* Added raw string literals to C++11
2021-04-05 18:49:02 -04:00
Anthony Calandra
d9b99892b0 Move char8_t to the language features section; add char32_t and char16_t. 2021-03-12 19:51:03 -05:00
Anthony Calandra
ee2b5775fc Add a section on coroutines. 2021-02-14 19:04:42 -05:00
raphael10241024
2be1f10b50 fix rvalue reference error (#89) 2020-10-12 23:30:16 -04:00
Rodrigo
2096b977c8 Better writing for C++17 nested namespaces. (#85)
* Better writing for C++17 nested namespaces.
2020-07-19 12:20:09 -04:00
Anthony Calandra
5c6303dbee Add lambda captures of parameter packs. 2020-06-26 22:16:53 -04:00
Anthony Calandra
aff25ca533 Fix incorrect lambda expression capture of [this]. 2020-06-26 22:03:08 -04:00
Anthony Calandra
58b21474c8 Move std::char8_t to library section. 2020-06-26 21:56:15 -04:00
Anthony Calandra
e8cac18ada Add std::midpoint and std::to_array. 2020-06-26 21:55:03 -04:00
Anthony Calandra
c1993c90f8 Update license year. 2020-06-26 21:21:22 -04:00
Anthony Calandra
326ac69b8f Fix anchoring errors. 2020-06-25 21:44:35 -04:00
Anthony Calandra
d61201faee Merge branch 'master' of github.com:AnthonyCalandra/modern-cpp-features 2020-06-25 21:41:14 -04:00
Anthony Calandra
0e24601c4f Support for:
- std::make_shared with C-style arrays
 - starts_with and ends_with
 - contains
 - std::bit_cast
2020-06-25 21:40:24 -04:00
Andreas Hofmann
352a87a284 Fix typo: Correct argument name in enum namespace example. (#81)
Signed-off-by: Andreas Hofmann <mail@andreas-hofmann.org>
2020-05-19 19:29:39 -04:00
Farsan Rashid
187b059420 Add new library feature std::ref (#80)
* Add std::ref

Add missing library feature introduced in CPP11.

* Modify comment in example of std::ref

* Add comment in example of std::ref

* Add link in table of content

* Add new library feature std::ref under CPP11

* Add std::cref

* Add std::cref
2020-03-08 15:02:02 -04:00
Semisonic
5d8180a809 Update README.md (#79)
* Update README.md

As per https://en.cppreference.com/w/cpp/utility/integer_sequence, `std::make_integer_sequence` doesn't accept any parameter pack template arguments
2020-02-25 18:42:09 -05:00
Anthony Calandra
b12ea9fc7f Improve smart pointers section. 2020-02-22 17:51:14 -05:00
Anthony Calandra
df6400cbb8 Improve move semantics sections. 2020-02-22 17:30:47 -05:00
Anthony Calandra
696cbe7293 Fix title casing. 2020-02-22 17:09:09 -05:00
Anthony Calandra
6b11829603 Added std::is_constant_evaluated. 2020-02-22 16:53:35 -05:00
Anthony Calandra
47733e4e29 Added C++20 mathematical constants. 2020-02-22 16:27:51 -05:00
Anthony Calandra
c918dbea71 Add bit operations library. 2020-02-22 16:18:24 -05:00
Anthony Calandra
810d4c6bc0 Include std::span. 2020-02-22 16:03:24 -05:00
Anthony Calandra
585e5c8b69 Synchronized buffered outputstreams. 2020-02-22 14:33:56 -05:00
Anthony Calandra
9168f05215 C++20 concepts are now snake_case. 2020-02-22 14:33:13 -05:00
Anthony Calandra
772980baa4 C++20 features: immediate functions, using enum. 2020-02-02 14:28:33 -05:00
Anthony Calandra
1e8b4e1768 Fix explicit(bool) link. 2020-02-01 18:04:59 -05:00
Anthony Calandra
c6734631fc Consistent title casing. 2020-02-01 18:03:31 -05:00
Anthony Calandra
6d90199ea9 C++20 features: constexpr virtual functions, explicit(bool), char8_t. 2020-02-01 17:59:06 -05:00
Anthony Calandra
71c24af74f C++20 features: new attributes, deprecate implicit capture of this, and classes in non-type template parameters. 2020-01-31 23:16:05 -05:00
Anthony Calandra
2e754375fd Fix formatting. 2020-01-26 14:14:49 -05:00
Frede
31cc7ac850 Added example of static inline member variables to #inline varibles (#77)
* Added example of static inline member variables to #inline varibles
2020-01-26 14:00:18 -05:00
Anthony Calandra
1c53669d1f Improve C++17 new attributes section. 2020-01-21 23:16:16 -05:00
Anthony Calandra
ce454e0c2d Designated initializers; template syntax for lambdas; range-based for loop with initializer. 2020-01-19 13:53:01 -05:00
Anthony Calandra
3489012600 Merge branch 'master' of github.com:AnthonyCalandra/modern-cpp-features 2020-01-15 22:12:22 -05:00