Iros
 
Loading...
Searching...
No Matches
any_storable.h
Go to the documentation of this file.
1#pragma once
2
4#include "di/types/prelude.h"
5#include "di/util/create.h"
8
9namespace di::concepts {
10template<typename T, typename Storage>
11concept AnyStorable = AnyStorage<Storage> && requires(Storage* self) {
12 Storage::init(self, in_place_type<T>, util::DeferConstruct([] -> T {
14 }));
15};
16}
Definition defer_construct.h:8
Definition any_storable.h:11
Definition any_storage.h:11
Definition any_storable.h:9
void unreachable()
Definition unreachable.h:4
constexpr auto in_place_type
Definition in_place_type.h:12