xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
compiler_id.h
Go to the documentation of this file.
1
4#pragma once
5#include "ustring.h"
6
8namespace xtd {
16 enum class compiler_id {
18 unknown = -1,
22 clang,
24 gcc,
25 };
26
27 inline std::ostream& operator<<(std::ostream& os, compiler_id value) {return os << to_string(value, {{compiler_id::unknown, "unknown"}, {compiler_id::microsoft_visual_studio, "microsoft_visual_studio"}, {compiler_id::clang, "clang"}, {compiler_id::gcc, "gcc"}});}
28 inline std::wostream& operator<<(std::wostream& os, compiler_id value) {return os << to_string(value, {{compiler_id::unknown, L"unknown"}, {compiler_id::microsoft_visual_studio, L"microsoft_visual_studio"}, {compiler_id::clang, L"clang"}, {compiler_id::gcc, L"gcc"}});}
29}
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: to_string.h:37
compiler_id
Identifies the compiler, supported by an assembly.
Definition: compiler_id.h:16
@ unknown
The processor architecture is unknown.
@ clang
The compiler is clang.
@ unknown
The compiler is unknown.
@ gcc
The compiler is gcc.
@ microsoft_visual_studio
The compiler is Microsoft Visual Studio.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.