#include <ucommon/platform.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Namespaces | |
namespace | ucc |
Data Structures | |
class | ucc::array_pointer< T > |
Generic smart array class. More... | |
class | ucc::pointer< T > |
Generic smart pointer class. More... | |
class | ucc::temp_array< T > |
Manage temporary array stored on the heap. More... | |
class | ucc::temporary< T > |
Manage temporary object stored on the heap. More... | |
Defines | |
#define | THROW(x) ::abort() |
#define | THROWS(x) |
#define | THROWS_ANY |
Functions | |
template<typename T> | |
T * | ucc::dup (const T &object) |
Convenience function to duplicate object pointer to heap. | |
template<> | |
char * | ucc::dup< char > (const char &object) |
template<class T> | |
bool | ucc::is (T &object) |
Convenience function to validate object assuming it is castable to bool. | |
template<typename T> | |
bool | ucc::isnull (T &object) |
Convenience function to test pointer object. | |
template<typename T> | |
bool | ucc::isnullp (T *object) |
Convenience function to test pointer-pointer object. | |
template<typename T> | |
T &() | ucc::max (T &o1, T &o2) |
Convenience function to return max of two objects. | |
template<typename T> | |
T &() | ucc::min (T &o1, T &o2) |
Convenience function to return min of two objects. | |
template<typename T> | |
void | ucc::swap (T &o1, T &o2) |
Convenience function to swap objects. |
These are templates that do not depend on any ucommon classes. They can be used for generic C++ programming.
Definition in file generics.h.