Go to the source code of this file.
|
template<typename T > |
auto | bsl::details::destructor_is_marked_nothrow (bsl::int32 ignored) noexcept -> bool_constant< noexcept(bsl::declval< T & >().~T())> |
| Tests if a destructor is marked noexcept or not. It does this by creating a function that returns true if T's destructor is marked noexcept, false otherwise. If T does not have a destructor, the other version of this function is selected by the compiler which always returns false. More...
|
|
template<typename T > |
auto | bsl::details::destructor_is_marked_nothrow (bool ignored) noexcept -> false_type |
| Tests if a destructor is marked noexcept or not. It does this by creating a function that returns true if T's destructor is marked noexcept, false otherwise. If T does not have a destructor, the other version of this function is selected by the compiler which always returns false. More...
|
|
template<typename T > |
constexpr bool | bsl::details::check_is_nothrow_destructible () noexcept |
| Checks if a type "T" is destructible and if so, returns true, otherwise returns false. 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.
◆ destructor_is_marked_nothrow() [1/2]
template<typename T >
auto bsl::details::destructor_is_marked_nothrow |
( |
bsl::int32 |
ignored | ) |
-> bool_constant< noexcept(bsl::declval< T & >().~T())> |
|
noexcept |
Tests if a destructor is marked noexcept or not. It does this by creating a function that returns true if T's destructor is marked noexcept, false otherwise. If T does not have a destructor, the other version of this function is selected by the compiler which always returns false.
- Template Parameters
-
- Parameters
-
ignored | (only used for overload resolution) |
- Returns
- returns true if T is nothrow destructible, false otherwise
◆ destructor_is_marked_nothrow() [2/2]
template<typename T >
auto bsl::details::destructor_is_marked_nothrow |
( |
bool |
ignored | ) |
-> false_type |
|
noexcept |
Tests if a destructor is marked noexcept or not. It does this by creating a function that returns true if T's destructor is marked noexcept, false otherwise. If T does not have a destructor, the other version of this function is selected by the compiler which always returns false.
- Template Parameters
-
- Parameters
-
ignored | (only used for overload resolution) |
- Returns
- returns true if T is nothrow destructible, false otherwise
◆ check_is_nothrow_destructible()
template<typename T >
constexpr bool bsl::details::check_is_nothrow_destructible |
( |
| ) |
|
|
noexcept |
Checks if a type "T" is destructible and if so, returns true, otherwise returns false.
- Template Parameters
-
- Returns
- If "T" is destructible, returns true, otherwise returns false.