Ardour  9.0-pre0-582-g084a23a80d
ContainerTraits< T > Struct Template Reference

#include <TypeTraits.h>

Public Types

typedef bool isNotContainer
 

Detailed Description

template<class T>
struct ContainerTraits< T >

Container traits.

Unspecialized ContainerTraits has the isNotContainer typedef for SFINAE. All user defined containers must supply an appropriate specialization for ContinerTraits (without the typedef isNotContainer). The containers that come with LuaBridge also come with the appropriate ContainerTraits specialization. See the corresponding declaration for details.

A specialization of ContainerTraits for some generic type ContainerType looks like this:

template <class T>
struct ContainerTraits <ContainerType <T> >
{
  typedef typename T Type;

  static T* get (ContainerType <T> const& c)
  {
    return c.get (); // Implementation-dependent on ContainerType
  }
};

Definition at line 57 of file TypeTraits.h.

Member Typedef Documentation

◆ isNotContainer

template<class T >
typedef bool ContainerTraits< T >::isNotContainer

Definition at line 59 of file TypeTraits.h.


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