Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::internal::AlignedBlock< Value, size, alignment > Struct Template Reference

#include <vector_sum_internal.h>

Public Member Functions

Value Sum () const
 

Public Attributes

Value values [size] = {}
 

Detailed Description

template<typename Value, size_t size, size_t alignment = sizeof(Value) * size>
struct operations_research::internal::AlignedBlock< Value, size, alignment >

A contiguous block of memory that contains size values of type Value, and the first value is aligned to alignment bytes.

Definition at line 34 of file vector_sum_internal.h.

Member Function Documentation

◆ Sum()

template<typename Value , size_t size, size_t alignment = sizeof(Value) * size>
Value operations_research::internal::AlignedBlock< Value, size, alignment >::Sum ( ) const
inline

Definition at line 37 of file vector_sum_internal.h.

Member Data Documentation

◆ values

template<typename Value , size_t size, size_t alignment = sizeof(Value) * size>
Value operations_research::internal::AlignedBlock< Value, size, alignment >::values[size] = {}

Definition at line 35 of file vector_sum_internal.h.


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