Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Struct template negatable

boost::type_erasure::negatable

Synopsis

// In header: <boost/type_erasure/operators.hpp>

template<typename T = _self, typename R = T> 
struct negatable {

  // public static functions
  static R apply(const T &);
};

Description

The negatable concept allow use of the unary minus operator on an any.

negatable public static functions

  1. static R apply(const T &);

PrevUpHomeNext