Dune Core Modules (2.8.0)

Dune::SizeOf< T > Struct Template Reference

Compute size of variadic type list. More...

#include <dune/common/typetraits.hh>

Detailed Description

template<typename... T>
struct Dune::SizeOf< T >

Compute size of variadic type list.

Template Parameters
TVariadic type list

The ::value member gives the size of the variadic type list T... This should be equivalent to sizeof...(T). However, with clang the latter may produce wrong results if used in template aliases due to clang bug 14858 (https://llvm.org/bugs/show_bug.cgi?id=14858).

As a workaround one can use SizeOf<T...>::value instead of sizeof...(T) in template aliases for any code that should work with clang < 3.8.


The documentation for this struct was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)