D
Size: a a a
D
O
template<bool B, typename U>
constexpr std::size_t size() {
// some magic with template parameters
return sizeof(U) + sizeof(decltype (B));
}
template<typename U, bool B = true, std::size_t = size<B, U>()>
struct X {};
template<>
struct X<int> {};
O
template<bool B, typename U>
constexpr std::size_t size() {
// some magic with template parameters
return sizeof(U) + sizeof(decltype (B));
}
template<typename U, bool B = true, std::size_t = size<B, U>()>
struct X {};
template<>
struct X<int> {};
D
O
template<bool B, typename U>
constexpr std::size_t size() {
// some magic with template parameters
return sizeof(U) + sizeof(decltype (B));
}
template<typename U, bool B = true, std::size_t = size<B, U>()>
struct X {};
template<>
struct X<int> {};
X<type /* без , bool{} */ >
O
struct X<B, int> {};
^^^
D
O
RM
O
AZ
KK
RM
RM
O
using from_4 = add_bit<>;
using from_8 = add_bit<from_4>;
using from_16 = add_bit<from_8>;
O
S
NI