24 namespace flags_internal {
33 return program_name ? *program_name :
"UNKNOWN";
47 program_name =
new std::string(prog_name_str);
49 program_name->assign(prog_name_str.
data(), prog_name_str.
size());
static ABSL_CONST_INIT absl::Mutex program_name_guard(absl::kConstInit)
constexpr size_type size() const noexcept
std::string ProgramInvocationName()
absl::string_view Basename(absl::string_view filename)
std::string ShortProgramInvocationName()
constexpr const_pointer data() const noexcept
static ABSL_CONST_INIT std::string *program_name GUARDED_BY(program_name_guard)
void SetProgramInvocationName(absl::string_view prog_name_str)