Represents a symbol provided by the linker, i.e. via a linker script.
LinkerSymbol objects are used with linker-provided symbols that don't have storage (which is common), and only provide a value e.g.
LinkerSymbol objects are not actual variables (do not have storage) and thus cannot be created; they can only be used with an extern "C" declaration. The purpose is to communicate values from the linker script to C++ code.
Example:
| T | The type of the value communicated by the linker, defaulting to uintptr_t. Must be an integral or enum type, no larger than uintptr_t. |
Public Member Functions | |
| LinkerSymbol (const LinkerSymbol &)=delete | |
| LinkerSymbol (const LinkerSymbol &&)=delete | |
| LinkerSymbol & | operator= (const LinkerSymbol &)=delete |
| LinkerSymbol & | operator= (const LinkerSymbol &&)=delete |
| T | value () const |
| Gets the value of this linker symbol, converted to the specified type. | |