#include <type_traits>
#include "absl/base/internal/identity.h"
Go to the source code of this file.
◆ ABSL_INTERNAL_INLINE_CONSTEXPR
#define ABSL_INTERNAL_INLINE_CONSTEXPR |
( |
|
var_type, |
|
|
|
name, |
|
|
|
init |
|
) |
| |
Value:template <class = 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 = \
AbslInternalInlineVariableHolder##name<>::kInstance; \
static_assert(
sizeof(
void (*)(decltype(
name))) != 0, \
"Silence unused variable warnings.")
Definition at line 89 of file inline_variable.h.