66 template<
class T,
size_t S>
86 template<
typename T,
typename... Ts>
90 return (std::unique_ptr<T>
91 (
new T(std::forward<Ts>(params)...)));
108 typename unique_if<T>::unique_array_unknown_bound
111 typedef typename std::remove_extent<T>::type U;
112 return (std::unique_ptr<T>(
new U[size]()));
127 template<
class T,
class... Ts>
128 typename unique_if<T>::unique_array_known_bound
142 union { uint32_t i; uint8_t c; } u;
bool isLittleEndian()
Determine endianess of current platform.
unique_if< T >::unique_single make_unique(Ts &&... params)
Framework version of std::make_unique for non-array types.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...
std::unique_ptr< T[]> unique_array_unknown_bound
Type to use when T is unknown-bound array.
void unique_array_known_bound
Type to use when T is known-bound array.
Define a type that is visible when T is not an array.
std::unique_ptr< T > unique_single
Type to use when T is not an array.