ucommon  7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
  Fossies Dox: ucommon-7.0.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

generics.h File Reference
#include <ucommon/cpr.h>
#include <cstdlib>
#include <cstring>
#include <stdexcept>
Include dependency graph for generics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ucommon::pointer< T >
 
class  ucommon::array_pointer< T >
 
class  ucommon::save_restore< T >
 

Namespaces

 ucommon
 

Macros

#define THROW(x)   throw x
 
#define THROWS(x)   throw(x)
 
#define THROWS_ANY   throw()
 

Functions

template<typename T >
bool ucommon::is (T &object)
 
template<typename T >
bool ucommon::isnull (T &object)
 
template<typename T >
bool ucommon::isnullp (T *object)
 
template<typename T >
T * ucommon::dup (const T &object)
 
template<typename T >
void ucommon::dupfree (T object)
 
template<>
char * ucommon::dup< char > (const char &object)
 
template<>
void ucommon::dupfree< char * > (char *object)
 
template<typename T >
void ucommon::reset_unsafe (T &object)
 
template<typename T >
void ucommon::zero_unsafe (T &object)
 
template<typename T >
void ucommon::copy_unsafe (T *target, const T *source)
 
template<typename T >
void ucommon::store_unsafe (T &target, const T *source)
 
template<typename T >
void ucommon::swap (T &o1, T &o2)
 
template<typename T >
ucommon::copy (const T &src)
 
template<typename T >
T & ucommon::copy (const T &src, T &to)
 
template<typename T >
T & ucommon::move (T &src, T &to)
 
template<typename T >
T & ucommon::clear (T &o)
 
template<typename T >
bool ucommon::bound (const T *pointer, const T *base, size_t count)
 
template<typename T >
T &() ucommon::max (T &o1, T &o2)
 
template<typename T >
T &() ucommon::min (T &o1, T &o2)
 
template<typename T >
T &() ucommon::limit (T &value, T &low, T &high)
 
template<typename T >
T & ucommon::deref_pointer (T *pointer)
 

Detailed Description

Generic templates for C++. These are templates that do not depend on any ucommon classes. They can be used for generic C++ programming.

Definition in file generics.h.

Macro Definition Documentation

◆ THROW

#define THROW (   x)    throw x

Definition at line 37 of file generics.h.

◆ THROWS

#define THROWS (   x)    throw(x)

Definition at line 38 of file generics.h.

◆ THROWS_ANY

#define THROWS_ANY   throw()

Definition at line 39 of file generics.h.