Crashpad
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
arraysize.h File Reference
#include <sys/types.h>
#include <type_traits>
Include dependency graph for arraysize.h:

Namespaces

namespace  crashpad
 The main namespace.
 
namespace  crashpad::internal
 The internal namespace, not for public use.
 

Macros

#define ArraySize(array)
 A way of computing an array’s size.
 

Functions

template<typename ArrayType>
constexpr size_t crashpad::internal::ArraySizeHelper () noexcept
 A helper to implement ArraySize.
 

Macro Definition Documentation

◆ ArraySize

#define ArraySize ( array)
Value:
constexpr size_t ArraySizeHelper() noexcept
A helper to implement ArraySize.
Definition arraysize.h:29

A way of computing an array’s size.

Use this only where std::size() won’t work, such as in constant expressions (including static_assert expressions) that consider the sizes of non-static data members.