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.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | Static Public Member Functions | List of all members
xtd::compiler Class Referencefinal

#include <compiler.h>

Definition

Represents information about c++ libraries, such as the version and standard identifier. This class cannot be inherited.

Namespace
xtd
Library
xtd.core
Remarks
The compiler class contains information about c++ libraries.
For information about current c++ libraries, retrieve the compiler object returned by the xtd::environment::compiler_version method.
By design, the operating_system class is not a general purpose means of describing an operating system, and you cannot derive a more inclusive type from the operating_system class. If you need a type to contain other information about C++ libraries, create your own type, then include a field of compiler type and any additional fields or methods that you require.

Inherits xtd::object.

Public Member Functions

 compiler (xtd::compiler_id compiler_id)
 
xtd::build_type build_type () const noexcept
 
xtd::compiler_id compiler_id () const noexcept
 
bool is_build_type_debug () const noexcept
 
xtd::ustring name () const noexcept
 
xtd::ustring to_string () const noexcept
 Converts the value of this operating_system object to its equivalent string representation.
 
const xtd::versionversion () const noexcept
 
xtd::ustring version_string () const noexcept
 
- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
virtual bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type.
 
template<typename object_t >
std::unique_ptr< object_t > memberwise_clone () const
 Gets the type of the current instance.
 
virtual xtd::ustring to_string () const noexcept
 Returns a std::string that represents the current object.
 

Static Public Member Functions

static bool is_64_bit () noexcept
 
- Static Public Member Functions inherited from xtd::object
static bool equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
static bool reference_equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

Member Function Documentation

◆ to_string()

xtd::ustring xtd::compiler::to_string ( ) const
inlinevirtualnoexcept

Converts the value of this operating_system object to its equivalent string representation.

Returns
The string representation of the values returned by the platform, version, and service_pack methods.

Reimplemented from xtd::object.


The documentation for this class was generated from the following file: