thrust / dependencies /libcudacxx /libcxx /test /std /utilities /function.objects /unord.hash /enum.fail.cpp
Download dependencies/libcudacxx/libcxx/test/std/utilities/function.objects/unord.hash/enum.fail.cpp from camenduru/thrust: direct link, hf CLI and curl.
- Browser
- Download file 605 Bytes
-
https://huggingface.co/camenduru/thrust/resolve/main/dependencies/libcudacxx/libcxx/test/std/utilities/function.objects/unord.hash/enum.fail.cpp
- Command line
-
hf download hf://camenduru/thrust/dependencies/libcudacxx/libcxx/test/std/utilities/function.objects/unord.hash/enum.fail.cpp
-
curl -L -o enum.fail.cpp https://huggingface.co/camenduru/thrust/resolve/main/dependencies/libcudacxx/libcxx/test/std/utilities/function.objects/unord.hash/enum.fail.cpp
605 Bytes
| //===----------------------------------------------------------------------===// | |
| // | |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | |
| // See https://llvm.org/LICENSE.txt for license information. | |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| // | |
| //===----------------------------------------------------------------------===// | |
| // <functional> | |
| // Hashing a struct w/o a defined hash should fail. | |
| struct X {}; | |
| int main(int, char**) | |
| { | |
| X x; | |
| size_t h = std::hash<X>{} ( x ); | |
| return 0; | |
| } | |