|
Teamcenter C++ API Reference
2312
|
Go to the source code of this file.
Classes | |
| struct | Teamcenter::Internal::checked_array_deleter< T > |
| Ensures that an incomplete type would result in a compile time error. More... | |
| struct | Teamcenter::Internal::checked_deleter< T > |
| Ensures that an incomplete type would result in a compile time error. More... | |
Namespaces | |
| namespace | Teamcenter |
| A convenient C++ class to manage a list of tag_t. This convenient class is derived from TagList class which is only available for internal developers. | |
| namespace | Teamcenter::Internal |
Functions | |
| template<class T > | |
| void | Teamcenter::Internal::checked_array_delete (T *x) |
| Ensures that an incomplete type would result in a compile time error. More... | |
| template<class T > | |
| void | Teamcenter::Internal::checked_delete (T *x) |
| Ensures that an incomplete type would result in a compile time error. More... | |
Utilities methods to check whether a type is complete before calling delete operator.
C++ standard allows pointers to an incomplete type to be deleted with a delete expression. When a class has non trivial destructor or a class specific destructor, the behavior is undefined.
Some compilers issue a warning for this scenario, this class makes sure to give an error.
Definition in file CheckedDelete.hxx.