summaryrefslogtreecommitdiff
path: root/Utilities/std/cmext
Commit message (Collapse)AuthorAgeFilesLines
* Revise C++ coding style using clang-format-15Kitware Robot2023-01-181-4/+4
| | | | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 15. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. Fixes: #24315
* cm::enum_set: fix various bugsMarc Chevrier2022-08-221-5/+8
|
* cm::enum_set: fix compilation warningMarc Chevrier2022-04-291-1/+5
|
* cm::enum_set: container that contains a set of unique enum values.Marc Chevrier2022-04-271-0/+393
| | | | The enum must be an `enum class` with an unsigned integer as base type.
* Modernize: Use #pragma once in all header filesKitware Robot2020-09-035-20/+5
| | | | | | | | | | | | | | | | #pragma once is a widely supported compiler pragma, even though it is not part of the C++ standard. Many of the issues keeping #pragma once from being standardized (distributed filesystems, build farms, hard links, etc.) do not apply to CMake - it is easy to build CMake on a single machine. CMake also does not install any header files which can be consumed by other projects (though cmCPluginAPI.h has been deliberately omitted from this conversion in case anyone is still using it.) Finally, #pragma once has been required to build CMake since at least August 2017 (7f29bbe6 enabled server mode unconditionally, which had been using #pragma once since September 2016 (b13d3e0d)). The fact that we now require C++11 filters out old compilers, and it is unlikely that there is a compiler which supports C++11 but does not support #pragma once.
* Implement cm::static_reference_cast by declvalSumit Bhardwaj2020-07-041-8/+9
| | | | | | | | Previously, cm::static_reference_cast used invoke_result_t and took the address of O::get. This is not in complete conformance with standard. This MR changes the implementation to use std::declval<O>.get() which is always well-defined.
* Refactoring: rename "cm_static_string_view.hxx" as <cmext/string_view>Marc Chevrier2020-04-301-0/+42
|
* Refactoring: add cm::contains to <cmext/algorithm>Marc Chevrier2020-04-173-11/+103
|
* Stl support: cm::append now supports any sequential containerMarc Chevrier2020-01-242-16/+145
|
* STL Support: enhance behavior of cm::dynamic_reference_castMarc Chevrier2020-01-171-1/+9
| | | | | Ensure cm::dynamic_reference_cast has same behavior as dynamic_cast on reference: raise std::bad_cast if dynamic_cast is not possible.
* STL Support: extends type_traits for future developmentsMarc Chevrier2020-01-171-0/+68
|
* Refactoring: introduce header cmext/algorithm with append functionsMarc Chevrier2019-12-172-0/+101
|
* Memory management: cast functions for managed pointersMarc Chevrier2019-11-271-0/+32