69 template<
typename T,
typename =
void>
70 inline constexpr bool ReallyCopyConstructible =
71 requires(
const T& src) { T{src}; };
78 inline constexpr bool ReallyCopyConstructible<
84 requires(
const T& src) { T{src}; } &&
85 ReallyCopyConstructible<typename std::remove_cvref_t<T>::value_type>;
91 template<
typename T,
typename =
void>
92 inline constexpr bool ReallyCopyAssignable =
93 requires(T& dest,
const T& src) { dest = src; };
100 inline constexpr bool ReallyCopyAssignable<
106 requires(T& dest,
const T& src) { dest = src; } &&
107 ReallyCopyAssignable<typename std::remove_cvref_t<T>::value_type>;
355 template<
typename T,
typename... Args>
371 template<
typename T,
typename U>
385 requires(std::remove_cvref_t<T>
const& a, std::remove_cvref_t<T>
const& b) {
386 { a < b } -> std::convertible_to<bool>;
387 { a > b } -> std::convertible_to<bool>;
388 { a <= b } -> std::convertible_to<bool>;
389 { a >= b } -> std::convertible_to<bool>;
T can be assigned from U (std::assignable_from).
Definition object_semantics.hxx:372
Type constructible from Args (std::constructible_from).
Definition object_semantics.hxx:356
Has begin(), end() and value_type, and is not a StormByte::Type::String.
Definition containers.hxx:172
Type that can actually be copy-assigned.
Definition object_semantics.hxx:249
Type that can actually be copy-constructed.
Definition object_semantics.hxx:189
Both StormByte::Type::CopyConstructible and StormByte::Type::CopyAssignable.
Definition object_semantics.hxx:304
Type constructible from an empty initializer (T{} / T()).
Definition object_semantics.hxx:156
Type that can be destroyed.
Definition object_semantics.hxx:342
Type whose == and != both yield something convertible to bool.
Definition comparison.hxx:81
Both StormByte::Type::MoveConstructible and StormByte::Type::MoveAssignable.
Definition object_semantics.hxx:316
Type that can be move-assigned (operator=(T&&)).
Definition object_semantics.hxx:273
Type that can be move-constructed.
Definition object_semantics.hxx:213
StormByte::Type::Semiregular and equality-comparable.
Definition object_semantics.hxx:416
Default-constructible, copyable and movable.
Definition object_semantics.hxx:404
Type that can be swapped with std::swap (std::is_swappable).
Definition object_semantics.hxx:328
Type with equality and a total order.
Definition object_semantics.hxx:384
StormByte::Type::CopyAssignable with a trivial copy-assignment operator.
Definition object_semantics.hxx:261
StormByte::Type::CopyConstructible with a trivial copy constructor.
Definition object_semantics.hxx:201
Type that may be copied with memcpy / as-if memcpy.
Definition object_semantics.hxx:125
StormByte::Type::DefaultConstructible with a trivial default constructor.
Definition object_semantics.hxx:168
Type with a trivial destructor.
Definition object_semantics.hxx:137
StormByte::Type::MoveAssignable with a trivial move-assignment operator.
Definition object_semantics.hxx:285
StormByte::Type::MoveConstructible with a trivial move constructor.
Definition object_semantics.hxx:225
Range view (std::ranges::view).
Definition ranges.hxx:142
Named concepts and small type utilities used across the suite.
Root namespace of the StormByte suite.