#include "sen/core/base/assert.h"
#include "sen/core/base/integer_compare.h"
#include <cassert>
#include <cmath>
#include <iostream>
#include <limits>
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>
Go to the source code of this file.
|
| template<typename ToType, typename FromType, typename ReportPolicy = ReportPolicyIgnore> |
| ToType | sen::std_util::impl::conversionImpl (FromType from) |
| | Safely convert between two different integral types. If the value stored in from cannot be represented in ToType, the value is truncated.
|
| template<typename ToType, typename ReportPolicy = ReportPolicyAssertion, typename FromType> |
| ToType | sen::std_util::checkedConversion (FromType from) |
| | Safely convert between two different integral types. If the value stored in from cannot be represented in ToType, the value is truncated.
|
| template<typename ToType, typename ReportPolicy = ReportPolicyIgnore, typename FromType> |
| ToType | sen::std_util::ignoredLossyConversion (FromType from) |
| | Safely convert between two different integral types. If the value stored in from cannot be represented in ToType, the value is truncated.
|