StormByte C++ Library 1.2.0
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
Loading...
Searching...
No Matches
StormByte::Type::CopyAssignable Concept Reference

Type that can actually be copy-assigned. More...

#include <StormByte/type_traits/object_semantics.hxx>

Concept definition

template<typename T>
concept StormByte::Type::CopyAssignable = ReallyCopyAssignable<T>
Type that can actually be copy-assigned.
Definition object_semantics.hxx:165

Detailed Description

Type that can actually be copy-assigned.

Template Parameters
TType to test.

Not std::is_copy_assignable_v: same caveat as CopyConstructible for containers of move-only values. Recurses into value_type only when T is a Container and not a View.

template<Type::CopyAssignable T>
void overwrite(T& dest, const T& src) { dest = src; }