must_subscript_as_decayable_pointer Struct Template Reference
[Constraints Utility Library]

#include <stlsoft/util/constraints.hpp>

List of all members.

Detailed Description

template<typename T>
struct stlsoft::must_subscript_as_decayable_pointer< T >

Constraint to enforce that a given type is an actual array or pointer, rather than a user-defined type with a subscript operator.

T The type to be constrained
It may be used as follows:
  typedef std::vector<int>  vec_t;

  stlsoft::must_subscript_as_decayable_pointer<int*>();   // Ok
  stlsoft::must_subscript_as_decayable_pointer<vec_t>();  // Compile error!
  stlsoft::must_subscript_as_decayable_pointer<double>(); // Compile error!

See also:

The documentation for this struct was generated from the following file:

Generated on Thu Jun 10 08:59:02 2010 for STLSoft by  doxygen 1.5.6