YB
Size: a a a
YB
YB
AY
c
DF
DF
DF
DF
v
template <class Operation, typename = std::enable_if_t<Operation::op == Operation::Insert::op>>И что получается, я не могу их определить out of class, только inline?
[[nodiscard]] bool registerOp(const Operation& op);
template <class Operation, typename = std::enable_if_t<Operation::op == Operation::Find::op>>
[[nodiscard]] bool registerOp(const Operation& op);
v
template <class Operation, typename = std::enable_if_t<Operation::op == Operation::Insert::op>>И что получается, я не могу их определить out of class, только inline?
[[nodiscard]] bool registerOp(const Operation& op);
template <class Operation, typename = std::enable_if_t<Operation::op == Operation::Find::op>>
[[nodiscard]] bool registerOp(const Operation& op);
v
template <class Operation, typename = std::enable_if_t<Operation::op == Operation::Insert::op>>И что получается, я не могу их определить out of class, только inline?
[[nodiscard]] bool registerOp(const Operation& op);
template <class Operation, typename = std::enable_if_t<Operation::op == Operation::Find::op>>
[[nodiscard]] bool registerOp(const Operation& op);
v
template <class Operation, typename = std::enable_if_t<Operation::op == Operation::Insert::op>>И что получается, я не могу их определить out of class, только inline?
[[nodiscard]] bool registerOp(const Operation& op);
template <class Operation, typename = std::enable_if_t<Operation::op == Operation::Find::op>>
[[nodiscard]] bool registerOp(const Operation& op);
#include <type_traits>
template <class T>
concept Int = std::is_same_v<T, int>;
struct A {
template<Int T>
int f(T);
};
template<Int T>
int A::f(T) {
return 42;
}
int main() {
return A{}.f(0);
}
DF
DF
A
#include <type_traits>
template <class T>
concept Int = std::is_same_v<T, int>;
struct A {
template<Int T>
int f(T);
};
template<Int T>
int A::f(T) {
return 42;
}
int main() {
return A{}.f(0);
}
A