xentara-utils v2.0.4
The Xentara Utility Library
Loading...
Searching...
No Matches
xentara::utils::tools::NotCopyMove< Type, ParameterPack > Struct Template Reference

Checks whether a parameter pack doesn't consist of a single element with a specific type. More...

#include <xentara/utils/tools/TypeTraits.hpp>

Detailed Description

template<typename Type, typename... ParameterPack>
struct xentara::utils::tools::NotCopyMove< Type, ParameterPack >

Checks whether a parameter pack doesn't consist of a single element with a specific type.

This trait checks whether a parameter pack doesn't consist of exactly one parameter that is a possibly CV-qualified version of a certain type, or a possibly CV-qualified reference to that type. This can be used to prevent templated constructors from qualifying as copy and/or move constructors.

Template Parameters
TypeThe type to check for
ParameterPackThe parameter pack