SpECTRE
v2025.03.17
|
Check if T
is copy constructible.
More...
#include <CanBeCopyConstructed.hpp>
Check if T
is copy constructible.
The STL std::is_copy_constructible
does not work as expected with some types, such as std::unordered_map
. This is because std::is_copy_constructible
only checks that the copy construction call is well-formed, not that it could actually be done in practice. To get around this for containers we check that T::value_type
is also copy constructible.