| 909 | /// @brief Deletes memory safely and points to null |
| 910 | template <typename T> |
| 911 | static |
| 912 | typename std::enable_if<std::is_pointer<T*>::value, void>::type |
| 913 | safeDelete(T*& pointer) { |
| 914 | if (pointer == nullptr) |
| 915 | return; |
| 916 | delete pointer; |
| 917 | pointer = nullptr; |
| 918 | } |
| 919 | /// @brief Bitwise operations for C++11 strong enum class. This casts e into Flag_T and returns value after bitwise operation |
| 920 | /// Use these function as <pre>flag = bitwise::Or<MyEnum>(MyEnum::val1, flag);</pre> |
| 921 | namespace bitwise { |
no outgoing calls
no test coverage detected