You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// joins (concatenates) two `std::array` of the same element type at compile-timeconstexprautokFoo = std::array{'f','o','o'};
constexprautokBar = std::array{'b','a','r'};
constexprautokFooBar =
tplat::array_join<kFoo, kBar>; /* std::array{'f','o','o','b','a','r'} */
/// joins (concatenates) two OR MORE* `std::array` of the same element type at compile-time/// *up to the compiler limitsconstexprautokOne = std::array{0,6};
constexprautokTwo = std::array{14,1};
constexprautokThree = std::array{9,16,22};
constexprautokOneTwoThree =
tplat::array_multijoin<kOne, kTwo, kThree>; /* std::array{0,6,14,1,9,16,22} */
/// converts a signed or unsigned integer literal to a non-terminated character/// string representation, similar to std::to_string, but completely compile-time;/// also allows the user to set a number base for the conversion// -199, base-10 -> "-199"constexprautokStr10 =
tplat::array_chars_from_integral<-199>; /* std::array{'-','1','9','9'} */// 32713, base-16 -> "7fc9"constexprautokStr16 =
tplat::array_chars_from_integral<32713, 16>; /* std::array{'7','f','c','9'} */// 105, base-2 -> "1101001"constexprautokStr02 =
tplat::array_chars_from_integral<1105, 2>; /* std::array{'1','1','0','1','0','0','1'} */
/// expands any homogeneous parameter pack into an std::array at compile-timeconstexprautokParams =
tplat::array_from_param_pack<std::uint64_t, 0xF, 0xB, 0x3>; /* std::array<std::uint64_t, 3>{15,10,3}; */
tplat::array_as_string_view and tplat::array_as_string_view_interface | <tplat/array_as_string_view.hxx>
/// converts a compatible compile-time char array (std::array<CharT, N>) to a string_view/// or an interface object that supports a string_view instance methodconstexprautokArray = std::array{'h','e','l','l','o'};
constexprkStrView
= tplat::array_as_string_view<kArray>; /* std::string_view{"hello"} */constexprkStrViewIf
= tplat::array_as_string_view_interface<kArray>; /* kStrViewIf.string_view() -> std::string_view{"hello"} */