Commit Graph

81 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
Tulio Leao
df931dfff4 Add section on non-static data member initializers
Since C++11, N2756 specifies that you can initialize a non-static member on its declaration.
2017-04-08 15:40:22 -03:00
Tulio Leao
80005e1e9b Add section about inline namespaces
As suggested on issue #15, inline namespaces were missing from the documentation, so I added a sentence with a snippet :)
2017-04-08 15:10:32 -03:00
Tulio Leao
e1a7c18c37 Fix minor formatting issues
Changed the order of the title to reflect the actual order of the text and fixed some minor formatting on the text :)
2017-04-08 12:37:53 -03:00
Tulio Leao
daaae83826 Fix C++11 decltype example
It was using an undeclared variable on the assignment, now it uses the previous one, which I guessed was the original thought.
2017-03-31 22:05:28 -03:00
Anthony Calandra
2159f83b30 Merge branch 'master' of github.com:AnthonyCalandra/modern-cpp-features 2017-03-25 00:05:35 -04:00
Anthony Calandra
fe636d3aff Explicit conversion functions. 2017-03-24 23:50:53 -04:00
Anthony Calandra
a3ac112431 Converting constructors. 2017-03-24 23:44:54 -04:00
Anthony Calandra
fc3e9b8203 Direct list initialization of enums. 2017-03-24 23:20:04 -04:00
Mos
c4fcc6250b Fix example for decltype(auto) and Initializer lists 2017-03-16 19:33:54 +04:00
Anthony Calandra
1f3a7a3316 UTF-8 character literals. 2017-01-15 18:06:21 -05:00
Anthony Calandra
ffe72e9d84 Lambda capture this by value. 2017-01-15 17:45:48 -05:00
Anthony Calandra
85e9d0b6d9 Fix typo. 2017-01-15 17:18:41 -05:00
Anthony Calandra
e6da8e3511 Provide link to GH's contributors page. 2017-01-03 15:29:53 -05:00
Oleg Rabaev
95ee20c82e Add final specifier 2017-01-02 21:28:34 -05:00
Dima
317894a4db Typo: s/would no compile/would not compile/. 2016-12-23 21:52:11 -08:00
Aske Doerge
4084ab080d Added cross-references. 2016-11-14 12:23:05 +01:00