xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
architecture_id.h
Go to the documentation of this file.
1 #pragma once
5 #include "ustring.h"
6 
8 namespace xtd {
16  enum class architecture_id {
18  unknown = -1,
20  x86,
22  arm,
23  };
24 
25  inline std::ostream& operator<<(std::ostream& os, architecture_id value) {return os << to_string(value, {{architecture_id::unknown, "unknown"}, {architecture_id::x86, "x86"}, {architecture_id::arm, "arm"}});}
26  inline std::wostream& operator<<(std::wostream& os, architecture_id value) {return os << to_string(value, {{architecture_id::unknown, L"unknown"}, {architecture_id::x86, L"x86"}, {architecture_id::arm, L"arm"}});}
27 }
architecture_id
Identifies the processor architecture, supported by an assembly.
Definition: architecture_id.h:16
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
@ x86
The processor architecture is x86 (Intel or amd).
@ unknown
The processor architecture is unknown.
@ arm
The processor architecture is ARM.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.