'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Class template is_oarchive

odtone::mih::is_oarchive

Synopsis

// In header: </home/carlos/Projectos/odtone/inc/odtone/mih/archive.hpp>

template<typename T> 
class is_oarchive {
public:
  // member classes/structs/unions

  class false_t {
  };

  // private static functions
  template<typename U> static true_t test(typename U::oarchive_type * = 0);
  template<typename U> static false_t test(...);

  // public data members
  static const bool value;
};

Description

This class permits to check if a given class is an output archive. It has only a boolean value that is true when the given class is an output archive, or false otherwise.

is_oarchive private static functions

  1. template<typename U> static true_t test(typename U::oarchive_type * = 0);
  2. template<typename U> static false_t test(...);

PrevUpHomeNext