Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in c++17

Template ignores [[nodiscard]] attribute

Getting active value in std::visit without knowing which value is active

c++ c++17 variant

Default argument for a functor in a templated parameter

Is there any way to create a function that takes as argument a member function or a member?

Difference between S() vs S{}?

Neat way how to cyclically iterate 4 enum class values in both directions in C++?

Write a function that only accepts literal `0` or literal `1` as argument

How to Insert spaces in (cout << ... << args) using fold expressions?

c++17 fold-expression

inline variable is initialized more than once

C++ compile-time substring

c++ c++14 c++17

Why in C++11 or C++14 does the compiler implicitly delete the copy constructor when I declare a move assignment operator?

How to in-place-construct an optional aggregate?

What is the fastest way to see if an array has two common elements?

Is it possible to use `std::set_intersection` to check if two sets have any element in common?

c++ stl iterator set c++17

Using initializer list for a struct with inheritance

Why does the parallel for_each require forward iterators?

What is std::contiguous_iterator useful for?

c++ iterator c++17

Why can't I use operator bool() for std::ofstream

c++ c++11 c++14 c++17

Auto non-type template parameter with user defined types

c++ templates c++17

Prevent equality comparison of sibling structs

c++ inheritance c++17 siblings