C++ Utilities: CppUtilities::Literals Namespace Reference

C++ Utilities 5.33.0 Useful C++ classes and routines such as argument parser, IO and conversion utilities

Loading...
Searching...
No Matches
Functions
CppUtilities::Literals Namespace Reference

Contains literals to ease asserting with CPPUNIT_ASSERT_EQUAL. More...

## Functions
constexpr std::size_t | operator""_st (unsigned long long size)
| Literal for std::size_t to ease asserting std::size_t with CPPUNIT_ASSERT_EQUAL.
constexpr std::uint64_t | operator""_uint64 (unsigned long long size)
| Literal for uint64 to ease asserting uint64 with CPPUNIT_ASSERT_EQUAL.
constexpr std::int64_t | operator""_int64 (unsigned long long size)
| Literal for int64 to ease asserting int64 with CPPUNIT_ASSERT_EQUAL.

## Detailed Description

Contains literals to ease asserting with CPPUNIT_ASSERT_EQUAL.

## Function Documentation

## ◆ operator""_int64()

std::int64_t CppUtilities::Literals::operator""_int64 | ( | unsigned long long | size | ) |
| constexpr

Literal for int64 to ease asserting int64 with CPPUNIT_ASSERT_EQUAL.

Remarks
  Just using "l"-suffix does not compile under 32-bit architecture!

Definition at line 389 of file testutils.h.

## ◆ operator""_st()

std::size_t CppUtilities::Literals::operator""_st | ( | unsigned long long | size | ) |
| constexpr

Literal for std::size_t to ease asserting std::size_t with CPPUNIT_ASSERT_EQUAL.

Remarks
  Just using "ul"-suffix does not compile under 32-bit architecture!

Definition at line 371 of file testutils.h.

## ◆ operator""_uint64()

std::uint64_t CppUtilities::Literals::operator""_uint64 | ( | unsigned long long | size | ) |
| constexpr

Literal for uint64 to ease asserting uint64 with CPPUNIT_ASSERT_EQUAL.

Remarks
  Just using "ul"-suffix does not compile under 32-bit architecture!

Definition at line 380 of file testutils.h.