Commit Graph

178 Commits

Author SHA1 Message Date
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
Anthony Calandra
31f716589b Better explanation for std::move. 2020-01-15 22:11:57 -05:00
Matthew Guidry
07b1193de0 Add section about noexcept specifier (#72)
* Add section about noexcept
2019-12-16 21:37:24 -05:00
Muhammet Ali Asan
b785d8f971 added std::begin/end (#69)
* added std::begin/end
2019-11-14 12:24:14 -05:00
Matthew Guidry
4eb1a3ff5f Parameter Pack to Initializer List (#65)
* Add alternate use variadic template example
2019-10-24 18:40:38 -04:00
Matthew Guidry
cdcd516ae8 Add More Examples to Some Sections (#63)
* Add example to Structured Bindings
2019-10-14 11:41:00 -04:00
Azam Bham
af7125a698 "Template aliases" have been renamed to "Type aliases" in CPP11.md and README.md files (#60)
* "template aliases" have been renamed to "type aliases".
2019-09-21 16:30:04 -04:00
Anthony Calandra
fe57c1018f Fix typo. 2019-08-29 18:52:57 -04:00
Anthony Calandra
a417937da1 More work on concepts. 2019-07-30 22:53:56 -04:00
Tulio Leao
23e7b35c39 Add section about C++17 attributes (#50)
* Add section about C++17 attributes

Explains, in a single piece of code, about [[nodiscard]], [[fallthrough]] and [[maybe_unused]]
2019-06-19 11:23:45 -04:00
Tulio Leao
9f21a120f0 Add explanation about C++14 [[deprecated]] standard attribute (#49)
* Add [[deprecated]] attribute to C++14
2019-06-18 16:13:00 -04:00
Anthony Calandra
1c60839a11 Trailing return types. 2019-06-18 16:01:59 -04:00
Anthony Calandra
778d287275 Begin C++20 section with concepts! 2019-06-18 15:43:40 -04:00
Anthony Calandra
95a3b3f7be Add const rvalue reference edge-case for ref-qualified member functions section. 2019-06-14 01:15:39 -04:00
Anthony Calandra
1a5af17e8a Added ref-qualified member functions. 2019-06-13 22:28:43 -04:00
Anthony Calandra
4f508fc626 Update CONTRIBUTING doc with cheatsheet goals. 2019-06-13 22:03:00 -04:00
Anthony Calandra
0bb3f8dea2 Fix incorrect example and inconsistent forwarding references section. 2019-06-13 21:53:01 -04:00
Sonkeng Maldini
288c3b557c Minor grammar fix (#52)
* Readme grammar fix
2019-02-04 14:50:22 -05:00
Mahmoud Adas
b0713330f2 make std::chrono example more clear (#51)
* make std::chrono example more clear
2019-01-29 19:47:47 -05:00
Anthony Calandra
b1b0d0e3cc Cleanup; consistent formatting. 2018-12-12 17:14:31 -05:00
Anthony Calandra
dff069e9f5 Forwarding references; cleanup std::forward, rvalue references, and std::move 2018-12-12 16:52:46 -05:00
defmys
4df2261e0c C++11 feature: std::async (#47)
* C++11 feature: std::async
2018-12-10 11:33:12 -05:00
Anthony Calandra
9f37fd1773 Merge pull request #43 from runewalsh/master
std::move typo
2018-09-05 10:48:09 -04:00
runewalsh
a0ae2d068c std::move typo 2018-09-05 13:52:37 +03:00
Tulio Leao
aa50febf56 Add parallel algorithms (#39)
* Add parallel algorithms
2018-08-28 20:01:31 -04:00
Anthony Calandra
bfebe0936c Merge pull request #42 from NutshellySima/master
Use std::size instead of sizeof in string_view example
2018-08-28 19:59:08 -04:00
Chijun Sima
46c20a843c Use std::size instead of sizeof in string_view example 2018-08-24 15:03:36 +08:00
Anthony Calandra
d386a48f3b Add std::byte. 2018-08-23 22:45:05 -04:00
Anthony Calandra
6bd5496581 Fix tuples comment. 2018-08-23 22:18:32 -04:00