SiddiqSoft.format-helpers
1.0.5
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SiddiqSoft.format-helpers --version 1.0.5
NuGet\Install-Package SiddiqSoft.format-helpers -Version 1.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SiddiqSoft.format-helpers" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SiddiqSoft.format-helpers --version 1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SiddiqSoft.format-helpers, 1.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SiddiqSoft.format-helpers as a Cake Addin #addin nuget:?package=SiddiqSoft.format-helpers&version=1.0.5 // Install SiddiqSoft.format-helpers as a Cake Tool #tool nuget:?package=SiddiqSoft.format-helpers&version=1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
format-helpers
C++20 std::format helpers
API
Usage
include "siddiqsoft/formatters.hpp"
..
std::atomic_bool b{false};
std::cout << std::format( "b contains {}\n", b);
std::wcout << std::format(L"b contains {}\n", b);
Output
false
false
Type | Comment |
---|---|
std::atomic<T> <br/>std::atomic_int <br/>std::atomic_uint <br/>std::atomic_uint64_t <br/>std::atomic_int64_t <br/>std::atomic_bool |
Convenience helpers so you don't have to .load() when using std::format. |
std::exception |
Support for both char and wchar_t destinations. |
std::runtime_error |
Support for both char and wchar_t destinations. |
nlohmann::json |
If the library nlohmann.json is present the source json object is serialized and the output is converted to std::wstring as needed. |
Dependencies
None. However, if you're using the nlohmann.json
library then we will enable the serializers for that library.
- This library does not use any Windows-specific code. However, use Visual Studio 2019 v16.11.2 or newer as support for
<format>
is not present for GCC or Clang! - On Windows with VisualStudio, use the Nuget package!
- Make sure you use
c++latest
as the<format>
is no longer in thec++20
option pending ABI resolution.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
native | native is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SiddiqSoft.format-helpers:
Package | Downloads |
---|---|
SiddiqSoft.CosmosClient
Azure Cosmos REST-API Client for Modern C++ |
GitHub repositories
This package is not used by any popular GitHub repositories.