2 #include "fisch/vx/container_cast.h"
3 #include "fisch/vx/traits.h"
5 #include "hate/type_list.h"
14 template <
typename TL>
17 template <
typename... Ts>
20 constexpr
static std::array<bool,
sizeof...(Ts)> value = {
21 (fisch::vx::IsReadable<decltype(fisch::vx::container_cast(std::declval<Ts>()))>::value &&
22 fisch::vx::IsWritable<decltype(fisch::vx::container_cast(std::declval<Ts>()))>::value)...};
32 constexpr
auto lookup_table =
34 return lookup_table[
static_cast<size_t>(b)];
constexpr bool is_read_and_writeable(Backend const b)
Get whether given backend container is readable and writable.
Backend
Possible backends to target with PlaybackProgramBuilder::read/write.
Generate lookup table from backend to readable and writable property.