Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add C++20 Supports #1
Comments
|
Suggestion for C++20 ranges: Ranges:The ranges library provides a new way of working with ranges of elements. To use them, #include <vector>
int main()
{
std::vector<int> elements{0, 1, 2, 3, 4, 5, 6};
}Ranges accompanied by range adapters (the | operator) provide powerful functionality to #include <vector>
#include <ranges> //works in GCC 10.1(current)
int main()
{
std::vector<int> elements{0, 1, 2, 3, 4, 5, 6};
for (int current : elements | std::ranges::view::filter([](int e) { return
e % 2 == 0; }))
{
std::cout << current << " ";
}
} |
|
@kassane Thank you so much! |
|
@changkun 方便发布一版中文的EPUB吗 dalao |
需要支持以下内容:
constexprifstatic_assertinlinevariablesconstexpr改进, constexpr lambdaautonon-type template parametersPreprocessor predicate for header testingstd::string_view,std::byte加入 container 容器一章std::any,std::variant,std::optional加入 container 容器一章std::shared_mutex,atomic<T>::is_always_lockfree,scoped_lock<Mutexes...>new...