absl::GetFlagReflectionHandle

Returns the reflection handle corresponding to specified Abseil Flag instance. Use this handle to access flag's reflection information, like name, location, default value etc.

Synopsis

Declared in <absl/flags/flag.h>

template<typename T>
CommandLineFlag const&
GetFlagReflectionHandle(absl::Flag<T> const& f);

Description

Example:

std::string = absl::GetFlagReflectionHandle(FLAGS_count).DefaultValue();

Return Value

The reflection handle for f.

Parameters

NameDescription
fThe flag whose reflection handle to retrieve.