ПК
Size: a a a
ПК
ПК
ПК
ПК
VS
К
int* ptr = &some_bind_to_ref;
decltype(p) x; // x — int*
decltype(*p) x // x — int&
decltype(&p) x // x — int**
d
AS
int* ptr = &some_bind_to_ref;
decltype(p) x; // x — int*
decltype(*p) x // x — int&
decltype(&p) x // x — int**
К
AS
ip
invoke_result_t
с такой лямбдой получать ? ( но параметры лямбды могут меняться)template <class Callable>
auto get_value(Callable f) {
//invoke_result_t<Callable> val; // ?
return 0;
}
cout << get_value([](int x, char k) { return 5; });
CD
invoke_result_t
с такой лямбдой получать ? ( но параметры лямбды могут меняться)template <class Callable>
auto get_value(Callable f) {
//invoke_result_t<Callable> val; // ?
return 0;
}
cout << get_value([](int x, char k) { return 5; });
ip
struct book {
int id;
std::string title;
std::string author;
};
auto titles = select(books, [](book const & b) { return b.title; });
ip
CD
struct book {
int id;
std::string title;
std::string author;
};
auto titles = select(books, [](book const & b) { return b.title; });
ip
Е
template<class T,std::size_t N>
struct s {
using foo = T(Arg{},Arg{},Arg{}) // N раз, если фейлится то сделать N+1
};
TA
Е
TA