deduction-guide Questions
1
Solved
In the C++ 17 and C++ 20 Working Drafts of the C++ Standard the deduction guide for the class template std::array is defined the following way
template<class T, class... U>
array(T, U...) -&g...
Grandiose asked 22/3, 2022 at 13:48
1
Solved
For some reasons, I've always thought that deduction guides must have the same noexcept-ness of the constructor to which they refer. For example:
template<typename T>
struct clazz {
clazz(co...
Boomkin asked 9/4, 2021 at 15:1
2
Solved
All the std::make_ are made redundant by C++17 with the introduction of Class template argument deduction (except make_unique and make_shared).
So what is the point of std::make_optional? As far as...
Trinitrotoluene asked 4/7, 2020 at 22:1
1
Solved
With C++20, it is possible to have deduction guidelines generated for an alias template (See section "Deduction for alias templates" at https://en.cppreference.com/w/cpp/language/class_te...
Brunabrunch asked 21/11, 2020 at 3:0
2
I want to make an NDArray template which has a fixed dimension, but can be resized across each dimension.
My question is how to make it be able to deduce the dimensions in the constructor according...
Near asked 1/9, 2020 at 21:21
1
Solved
Suppose I want to make a new deduction guide making the following possible ?
std::string str;
std::basic_string_view sv = str;
Would that be an Ok customization ?
Revolving asked 22/11, 2019 at 10:56
1
© 2022 - 2025 — McMap. All rights reserved.