must_be_subscriptable Struct Template Reference
[Constraints Utility Library]

#include <stlsoft/util/constraints.hpp>

List of all members.


Detailed Description

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

Constraint to enforce that a given type is an array, or pointer, or user defined type which is amenable to subsripting (i.e.

defines operator[] or operator X*())

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

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

See also:
stlsoft::must_subscript_as_decayable_pointer

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