|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Type traits for primitive type detection and swap operations. More...
Go to the source code of this file.
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
Macros | |
| #define | DECLARE_PRIMITIVE(T) |
| Macro to declare a type as primitive. | |
| #define | DECLARE_SWAP(T) |
| Macro to declare optimized swap for primitive type. | |
Functions | |
| template<typename T > | |
| bool | Aleph::is_primitive_type () |
| Check if type T is a primitive C++ type. | |
| template<> | |
| bool | Aleph::is_primitive_type< char > () |
| template<> | |
| bool | Aleph::is_primitive_type< unsigned char > () |
| template<> | |
| bool | Aleph::is_primitive_type< short > () |
| template<> | |
| bool | Aleph::is_primitive_type< unsigned short > () |
| template<> | |
| bool | Aleph::is_primitive_type< int > () |
| template<> | |
| bool | Aleph::is_primitive_type< unsigned int > () |
| template<> | |
| bool | Aleph::is_primitive_type< long > () |
| template<> | |
| bool | Aleph::is_primitive_type< unsigned long > () |
| template<> | |
| bool | Aleph::is_primitive_type< long long > () |
| template<> | |
| bool | Aleph::is_primitive_type< unsigned long long > () |
| template<> | |
| bool | Aleph::is_primitive_type< float > () |
| template<> | |
| bool | Aleph::is_primitive_type< double > () |
| template<> | |
| bool | Aleph::is_primitive_type< long double > () |
| template<class T > | |
| T & | Aleph::swap (T &t1, T &t2) |
| Generic swap using object's swap method. | |
| template<> | |
| char & | Aleph::swap< char > (char &t1, char &t2) |
| template<> | |
| unsigned char & | Aleph::swap< unsigned char > (unsigned char &t1, unsigned char &t2) |
| template<> | |
| short & | Aleph::swap< short > (short &t1, short &t2) |
| template<> | |
| unsigned short & | Aleph::swap< unsigned short > (unsigned short &t1, unsigned short &t2) |
| template<> | |
| int & | Aleph::swap< int > (int &t1, int &t2) |
| template<> | |
| unsigned int & | Aleph::swap< unsigned int > (unsigned int &t1, unsigned int &t2) |
| template<> | |
| long & | Aleph::swap< long > (long &t1, long &t2) |
| template<> | |
| unsigned long & | Aleph::swap< unsigned long > (unsigned long &t1, unsigned long &t2) |
| template<> | |
| long long & | Aleph::swap< long long > (long long &t1, long long &t2) |
| template<> | |
| unsigned long long & | Aleph::swap< unsigned long long > (unsigned long long &t1, unsigned long long &t2) |
| template<> | |
| float & | Aleph::swap< float > (float &t1, float &t2) |
| template<> | |
| double & | Aleph::swap< double > (double &t1, double &t2) |
| template<> | |
| long double & | Aleph::swap< long double > (long double &t1, long double &t2) |
Type traits for primitive type detection and swap operations.
This file provides compile-time type traits for detecting primitive C++ types and optimized swap operations for those types.
is_primitive_type<T>(): Returns true for C++ primitivesswap<T>(): Optimized swap for primitive typesDefinition in file ahTypes.H.
| #define DECLARE_PRIMITIVE | ( | T | ) |
| #define DECLARE_SWAP | ( | T | ) |