GCC Middle and Back End API Reference
scalar_array_traits< T, zero > Struct Template Reference

#include <array-traits.h>

Inheritance diagram for scalar_array_traits< T, zero >:

Public Types

typedef T element_type
 

Static Public Member Functions

static const Tbase (const T &x)
 
static size_t size (const T &)
 

Static Public Attributes

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

Detailed Description

template<typename T, T zero = T (0)>
struct scalar_array_traits< T, zero >
Descriptions of array-like objects. Copyright (C) 2019-2025 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
Implementation for single integers (and similar types).

Member Typedef Documentation

◆ element_type

template<typename T, T zero = T (0)>
typedef T scalar_array_traits< T, zero >::element_type

Member Function Documentation

◆ base()

template<typename T, T zero = T (0)>
static const T * scalar_array_traits< T, zero >::base ( const T & x)
inlinestatic

References T.

◆ size()

template<typename T, T zero = T (0)>
static size_t scalar_array_traits< T, zero >::size ( const T & )
inlinestatic

References T.

Field Documentation

◆ constant_size

template<typename T, T zero = T (0)>
const size_t scalar_array_traits< T, zero >::constant_size = 1
static

◆ has_constant_size

template<typename T, T zero = T (0)>
const bool scalar_array_traits< T, zero >::has_constant_size = true
static

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