libcppa  Version 0.1
Classes | Functions
cppa::util Namespace Reference

Classes

class  abstract_uniform_type_info
 Implements all pure virtual functions of uniform_type_info except serialize() and deserialize(). More...
class  comparable
 Barton–Nackman trick implementation. More...
struct  eval_type_list
 Apply What to each element of List. More...
struct  eval_type_lists
 Apply What to each element of List. More...
struct  if_else_c
 A conditinal expression for types that allows nested statements (unlike std::conditional). More...
struct  is_array_of
 is_array_of<T,U>::value == true if and only if T is an array of U. More...
struct  is_primitive
 Evaluates to true if T is a primitive type. More...
struct  pt_token
 Achieves static call dispatch (int-to-type idiom). More...
struct  rm_ref
 Like std::remove_reference but prohibits void and also removes const references. More...
class  single_reader_queue
 An intrusive, thread safe queue implementation. More...
struct  type_list_apply
 Apply What to each element of List. More...
class  upgrade_lock_guard
 Upgrades shared ownership to exclusive ownership. More...

Functions

template<typename Fun >
void pt_dispatch (primitive_type ptype, Fun &&f)

Detailed Description

This namespace contains utility classes and meta programming utilities used by the libcppa implementation.


Function Documentation

template<typename Fun >
void cppa::util::pt_dispatch ( primitive_type  ptype,
Fun &&  f 
)

Creates a pt_token from the runtime value ptype and invokes f with this token.

Note:
Does nothing if ptype == pt_null.