Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename T>
- concept bool Initializable = requires(T t) {
- { t.init() } ->void;
- };
- struct S {
- void init() {}
- };
- static_assert(Initializable<S>);
- struct T {
- void init(int) {}
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement