Defines
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.

Defines

#define ABSL_INTERNAL_INLINE_CONSTEXPR(var_type, name, init)

Define Documentation

#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.")

Definition at line 89 of file inline_variable.h.



abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:42:16