Commit Graph

107 Commits

Author SHA1 Message Date
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
Anthony Calandra
2f7066a939 Add sections for decltypes and improve descriptions. 2018-08-23 22:17:56 -04:00
Tulio Leao
12b9992c01 Add filesystem library (#38)
* Add filesystem library
2018-08-20 11:24:54 -04:00
Tulio Leao
36729c1716 Add Threads library (#37)
* Add Threads library
2018-08-12 14:34:30 -04:00
Tulio Leao
79c439134f Simplify Type Traits example (#35)
The `std::is_<type>::value` already returns a `bool`, so comparing it to `1` is unnecessary.
2018-08-04 21:31:23 -04:00
Tulio Leao
21c9492403 Improve std::chrono example (#34)
* Improve std::chrono example

Closes #32 .

@skwllsp arguing makes sense, so the example can be updated to use steady_clock or it could guarantee that the system clock is steady using `std::chrono::system_clock::is_steady`, but I don't think that would simplify things.
2018-08-04 21:29:40 -04:00
Anthony Calandra
687c0ce558 Merge branch 'master' of github.com:AnthonyCalandra/modern-cpp-features 2017-08-20 14:02:48 -04:00
Anthony Calandra
db43d4b9c6 - Partition features based on major C++ version into separate readme files.
- Fix fold expressions typo.
- Add a CONTRIBUTING.md file on how to effectively contribute.
2017-08-20 14:01:23 -04:00
Anthony Calandra
d6d81c42ec Merge pull request #27 from AnthonyCalandra/revert-26-master
Revert "Named rvalue references are treated as lvalue references"
2017-07-13 08:24:50 -04:00
Anthony Calandra
c3feeca5f2 Revert "Named rvalue references are treated as lvalue references" 2017-07-13 08:24:17 -04:00
Anthony Calandra
6ac9ad0972 Merge pull request #26 from Peter-Levine/master
Named rvalue references are treated as lvalue references
2017-07-12 17:36:12 -04:00
Peter-Levine
883c196001 Named rvalue references are treated as lvalue references 2017-07-11 22:50:00 -04:00
Anthony Calandra
c4431e1c38 Typo in std::make_shared section. 2017-06-25 15:07:35 -04:00
Anthony Calandra
89427e964a Merge branch 'master' of github.com:AnthonyCalandra/modern-cpp-features 2017-06-24 13:14:48 -04:00
Anthony Calandra
543545ca9c Add sections on the std::make_X helper functions; improve section on smart pointers; structured bindings typo. 2017-06-24 13:14:26 -04:00
Anthony Calandra
bf2f09b590 Merge pull request #21 from gogoprog/feature/narrowing-braced-list
Added narrowing example in braced list syntax
2017-04-25 12:30:23 -04:00
Gauthier Billot
4ad2d10cc0 Added narrowing example in braced list syntax 2017-04-25 10:29:50 +02:00
Anthony Calandra
b887e0eb55 Add definition of my_integer_sequence. 2017-04-24 21:50:58 -04:00
Anthony Calandra
a48cfaecf9 Merge pull request #20 from tupaschoal/initializer
Add missing sections on C++11 and C++14
2017-04-24 21:43:50 -04:00
Tulio Leao
0b28c24857 Add section about variable templates to C++14 list
As per N3651 and C++14, variables can now be templated.
2017-04-09 16:08:33 -03:00
Tulio Leao
102599050a Add improvement to usage of right angle brackets
They are now properly distinguished from serializing operators (N1757).
2017-04-09 15:43:05 -03:00
Tulio Leao
899e94e3c5 Update example to use uniform initialization
Keeping it up to date with C++11 :)
2017-04-08 19:09:59 -03:00