StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
wrappers.hxx File Reference
#include <StormByte/type_traits/safe.hxx>
#include <concepts>
#include <cstddef>
#include <optional>
#include <queue>
#include <type_traits>
#include <utility>
#include <variant>
Include dependency graph for wrappers.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  StormByte::Type::Detail::is_std_queue< T >
 Primary classification for standard FIFO wrappers. More...
struct  StormByte::Type::Detail::is_std_queue< std::queue< Value, Container > >
 Specialization for std::queue with any underlying container. More...

Namespaces

namespace  StormByte
 Root namespace of the StormByte suite.
namespace  Type
 Octet count. Defined in byte_size.hxx. Forwarded so Type::Numeral can name it.
namespace  StormByte::Type
 Named concepts and small type utilities used across the suite.
namespace  Detail
 Private helpers.
namespace  StormByte::Type::Detail
 Private helpers for Safe classification.

Concepts

concept  StormByte::Type::Optional
 std::optional<U> or a Safe optional wrapper.
concept  StormByte::Type::Queue
 FIFO wrappers supported by generic queue operations.
concept  StormByte::Type::Variant
 Instantiation of std::variant, after stripping cv and references.
concept  StormByte::Type::VariantHasType
 StormByte::Type::Variant T that lists U among its alternatives.
concept  StormByte::Type::Pair
 Type with accessible first and second members.

Functions

template<typename VariantT, typename U, std::size_t... I>
constexpr bool StormByte::Type::Detail::variant_has_type_impl (std::index_sequence< I... > seq) noexcept
 Fold: is stripped U one of VariantT's alternatives?

Variables

template<typename T>
constexpr bool StormByte::Type::Detail::is_variant_v = false
 true when T is exactly std::variant after stripping cv and references.
template<typename... Ts>
constexpr bool StormByte::Type::Detail::is_variant_v< std::variant< Ts... > > = true
 Specialization for every std::variant alternative list.
template<typename VariantT, typename U>
constexpr bool StormByte::Type::Detail::variant_has_type_v
 Convenience wrapper around StormByte::Type::Detail::variant_has_type_impl.