Iros
 
Loading...
Searching...
No Matches
store_if.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace di::util {
6template<typename T, bool should_store>
7struct StoreIf {
9};
10
11template<typename T>
12struct StoreIf<T, false> {
13 template<typename... Args>
15 constexpr StoreIf(Args&&...) {}
16
17 StoreIf() = default;
18 StoreIf(StoreIf const&) = default;
19 StoreIf(StoreIf&&) = default;
20 auto operator=(StoreIf const&) -> StoreIf& = default;
21 auto operator=(StoreIf&&) -> StoreIf& = default;
22};
23}
24
25namespace di {
26using util::StoreIf;
27}
Definition operations.h:11
Definition vocab.h:96
Definition zstring_parser.h:9
Definition store_if.h:7
auto operator=(StoreIf const &) -> StoreIf &=default
T value
Definition store_if.h:8
constexpr StoreIf(Args &&...)
Definition store_if.h:15
StoreIf(StoreIf const &)=default
StoreIf(StoreIf &&)=default
auto operator=(StoreIf &&) -> StoreIf &=default