|
SpECTRE
v2026.04.01
|
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.