diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-06-22 22:29:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-27 14:37:40 (GMT) |
commit | 09aa2c94186081267753dedb50acb102717a6577 (patch) | |
tree | c977768b01f2955eb66fd5a58a58a61a82f57ace /Source/Checks | |
parent | ea5477e43de4660343897e4669bc5809dc4ddabe (diff) | |
download | CMake-09aa2c94186081267753dedb50acb102717a6577.zip CMake-09aa2c94186081267753dedb50acb102717a6577.tar.gz CMake-09aa2c94186081267753dedb50acb102717a6577.tar.bz2 |
Use <unordered_set> where available
Diffstat (limited to 'Source/Checks')
-rw-r--r-- | Source/Checks/cm_cxx_features.cmake | 1 | ||||
-rw-r--r-- | Source/Checks/cm_cxx_unordered_set.cxx | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake index b0ecc4c..e550e64 100644 --- a/Source/Checks/cm_cxx_features.cmake +++ b/Source/Checks/cm_cxx_features.cmake @@ -33,4 +33,5 @@ endfunction() if(CMAKE_CXX_STANDARD) cm_check_cxx_feature(unordered_map) + cm_check_cxx_feature(unordered_set) endif() diff --git a/Source/Checks/cm_cxx_unordered_set.cxx b/Source/Checks/cm_cxx_unordered_set.cxx new file mode 100644 index 0000000..de4bb77 --- /dev/null +++ b/Source/Checks/cm_cxx_unordered_set.cxx @@ -0,0 +1,7 @@ +#include <unordered_set> +int main() +{ + std::unordered_set<int> set; + set.insert(0); + return 0; +} |