Go to the source code of this file.
|
template<typename T > |
auto | bsl::details::test_is_nothrow_convertible1 (bsl::int32 ignored) noexcept -> true_type_for< T()> |
| Tests if the provided type is returnable, which is required for a type to be convertible. If the type is returnable, this returns true, false otherwise. More...
|
|
template<typename T > |
auto | bsl::details::test_is_nothrow_convertible1 (bool ignored) noexcept -> false_type |
| Tests if the provided type is returnable, which is required for a type to be convertible. If the type is returnable, this returns true, false otherwise. More...
|
|
template<typename From , typename To > |
auto | bsl::details::test_is_nothrow_convertible2 (bsl::int32 ignored) noexcept -> bool_constant< noexcept(declval< void(&)(To) noexcept >()(declval< From >()))> |
| Tests whether or not the provided to can be converted from "From" to "To" via a function parameter similar to an implicit conversion constructor (but might be implicitly provided by the compiler). If the type is convertible, this returns true, false otherwise. More...
|
|
template<typename From , typename To > |
auto | bsl::details::test_is_nothrow_convertible2 (bool ignored) noexcept -> false_type |
| Tests whether or not the provided to can be converted from "From" to "To" via a function parameter similar to an implicit conversion constructor (but might be implicitly provided by the compiler). If the type is convertible, this returns true, false otherwise. More...
|
|
template<typename From , typename To > |
constexpr bool | bsl::details::check_is_nothrow_convertible () noexcept |
| Performs all of the tests including testing if both types are void. More...
|
|
- Copyright
- Copyright (C) 2020 Assured Information Security, Inc.
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
◆ test_is_nothrow_convertible1() [1/2]
Tests if the provided type is returnable, which is required for a type to be convertible. If the type is returnable, this returns true, false otherwise.
- Template Parameters
-
- Parameters
-
ignored | (only used for overload resolution) |
- Returns
- returns true if T is returnable, false otherwise
◆ test_is_nothrow_convertible1() [2/2]
template<typename T >
auto bsl::details::test_is_nothrow_convertible1 |
( |
bool |
ignored | ) |
-> false_type |
|
noexcept |
Tests if the provided type is returnable, which is required for a type to be convertible. If the type is returnable, this returns true, false otherwise.
- Template Parameters
-
- Parameters
-
ignored | (only used for overload resolution) |
- Returns
- returns true if T is returnable, false otherwise
◆ test_is_nothrow_convertible2() [1/2]
template<typename From , typename To >
auto bsl::details::test_is_nothrow_convertible2 |
( |
bsl::int32 |
ignored | ) |
-> bool_constant< noexcept(declval< void(&)(To) noexcept >()(declval< From >()))> |
|
noexcept |
Tests whether or not the provided to can be converted from "From" to "To" via a function parameter similar to an implicit conversion constructor (but might be implicitly provided by the compiler). If the type is convertible, this returns true, false otherwise.
- Template Parameters
-
From | the type to convert to |
To | the type to convert from |
- Parameters
-
ignored | (only used for overload resolution) |
- Returns
- returns true if T is returnable, false otherwise
◆ test_is_nothrow_convertible2() [2/2]
template<typename From , typename To >
auto bsl::details::test_is_nothrow_convertible2 |
( |
bool |
ignored | ) |
-> false_type |
|
noexcept |
Tests whether or not the provided to can be converted from "From" to "To" via a function parameter similar to an implicit conversion constructor (but might be implicitly provided by the compiler). If the type is convertible, this returns true, false otherwise.
- Template Parameters
-
From | the type to convert to |
To | the type to convert from |
- Parameters
-
ignored | (only used for overload resolution) |
- Returns
- returns true if T is returnable, false otherwise
◆ check_is_nothrow_convertible()
template<typename From , typename To >
constexpr bool bsl::details::check_is_nothrow_convertible |
( |
| ) |
|
|
noexcept |
Performs all of the tests including testing if both types are void.
- Template Parameters
-
From | the type to convert to |
To | the type to convert from |
- Returns
- returns true if T is returnable, false otherwise