GCC Middle and Back End API Reference
array_traits< T[N]> Struct Template Reference

#include <array-traits.h>

Public Types

typedef T element_type
 

Static Public Member Functions

static const Tbase (const T(&x)[N])
 
static size_t size (const T(&)[N])
 

Static Public Attributes

static const bool has_constant_size = true
 
static const size_t constant_size = N
 

Detailed Description

template<typename T, size_t N>
struct array_traits< T[N]>
Implementation for arrays with a static size.   

Member Typedef Documentation

◆ element_type

template<typename T , size_t N>
typedef T array_traits< T[N]>::element_type

Member Function Documentation

◆ base()

template<typename T , size_t N>
static const T * array_traits< T[N]>::base ( const T(&) x[N])
inlinestatic

◆ size()

template<typename T , size_t N>
static size_t array_traits< T[N]>::size ( const T(&)[N])
inlinestatic

References N.

Field Documentation

◆ constant_size

template<typename T , size_t N>
const size_t array_traits< T[N]>::constant_size = N
static

◆ has_constant_size

template<typename T , size_t N>
const bool array_traits< T[N]>::has_constant_size = true
static

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