|
template<typename T > |
using | pni::core::invoke = typename T::type |
| alias to invoke a metafunction More...
|
|
template<typename C > |
using | pni::core::enable_if = invoke< std::enable_if< C::value >> |
| shortcut for std::enable_if
|
|
template<typename T > |
using | pni::core::is_pod = std::is_pod< T > |
| shortcut for std::is_pod
|
|
template<typename T > |
using | pni::core::is_ptr = std::is_pointer< T > |
| shortcut for std::is_pointer
|
|
This module contains utilty classes used throughout the entire code.
#define DEPRECATED_FUNCTION |
( |
|
newfunc | ) |
|
Value:std::cerr<<"DEPRECATION WARNING:"<<std::endl; \
std::cerr<<""<<BOOST_CURRENT_FUNCTION;\
std::cerr<<" is deprecated use "<<newfunc<<" instread!";\
std::cerr<<std::endl
This macro inserts a warning message shown at runtime when a deprecated function or class member function is used. It should remaind the developer that the function in use will most probably vanish in a future release. Call the macro at the beginning of the deprecated function. It uses the BOOST_CURRENT_FUNCTION macro to get the name of the actual function. The only argument is the signature of the new function to be used instread.
3 DEPRECATED_FUNCTION("void new_function()");
!
- Parameters
-
newfunc | the new function to use |
Metafunction to retrieve the result type of another metafunction.
- Template Parameters
-
template<typename CTYPE , typename... CTYPES>
bool pni::core::check_equal_size |
( |
const CTYPE & |
c, |
|
|
const CTYPES &... |
cs |
|
) |
| |
This variadic function compares the sizes of all the containers passed its arguments. If they are all equal true is returend, false otherwise.
typedef ... list_type;
typedef std::vector<size_t,10> array_type;
list_type l1(100);
array_type a1;
!
- Template Parameters
-
CTYPE | container type of first argument |
CTYPES | residual arguments types |
- Parameters
-
c | first container instance |
cs | residual containers |
- Returns
- true if all of samme size, false otherwise