Macros
inline_variable.h File Reference
#include <type_traits>
#include "absl/base/internal/identity.h"
Include dependency graph for inline_variable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ABSL_INTERNAL_INLINE_CONSTEXPR(var_type, name, init)
 

Macro Definition Documentation

◆ ABSL_INTERNAL_INLINE_CONSTEXPR

#define ABSL_INTERNAL_INLINE_CONSTEXPR (   var_type,
  name,
  init 
)
Value:
template <class /*AbslInternalDummy*/ = void> \
struct AbslInternalInlineVariableHolder##name { \
static constexpr ::absl::internal::identity_t<var_type> kInstance = init; \
}; \
\
template <class AbslInternalDummy> \
constexpr ::absl::internal::identity_t<var_type> \
AbslInternalInlineVariableHolder##name<AbslInternalDummy>::kInstance; \
\
static constexpr const ::absl::internal::identity_t<var_type>& \
name = /* NOLINT */ \
AbslInternalInlineVariableHolder##name<>::kInstance; \
static_assert(sizeof(void (*)(decltype(name))) != 0, \
"Silence unused variable warnings.")
char name[1]
Definition: mutex.cc:296

Definition at line 89 of file inline_variable.h.



abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:22