aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/triplet.h
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-10-13 18:37:41 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-10-13 18:37:41 -0700
commite17de99599a2f114faab1bb4821fbaad4d266c95 (patch)
tree397fec8a85af3ef002c125ce013eceb60d27116d /toolsrc/include/triplet.h
parent1fb5313a881fe0fcfd90dff5255045c8367ee00b (diff)
downloadvcpkg-e17de99599a2f114faab1bb4821fbaad4d266c95.tar.gz
vcpkg-e17de99599a2f114faab1bb4821fbaad4d266c95.zip
[vcpkg] Re-layout all files using new organization scheme.
All filenames and directories are lowercase. Use dots for namespace separation.
Diffstat (limited to 'toolsrc/include/triplet.h')
-rw-r--r--toolsrc/include/triplet.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/toolsrc/include/triplet.h b/toolsrc/include/triplet.h
deleted file mode 100644
index 46a52f8e6..000000000
--- a/toolsrc/include/triplet.h
+++ /dev/null
@@ -1,43 +0,0 @@
-#pragma once
-
-#include <string>
-
-namespace vcpkg
-{
- struct TripletInstance;
-
- struct Triplet
- {
- public:
- constexpr Triplet() : m_instance(&DEFAULT_INSTANCE) {}
-
- static Triplet from_canonical_name(const std::string& triplet_as_string);
-
- static const Triplet X86_WINDOWS;
- static const Triplet X64_WINDOWS;
- static const Triplet X86_UWP;
- static const Triplet X64_UWP;
- static const Triplet ARM_UWP;
-
- const std::string& canonical_name() const;
- const std::string& to_string() const;
- size_t hash_code() const;
-
- bool operator==(const Triplet& other) const;
-
- private:
- static const TripletInstance DEFAULT_INSTANCE;
-
- constexpr Triplet(const TripletInstance* ptr) : m_instance(ptr) {}
-
- const TripletInstance* m_instance;
- };
-
- bool operator!=(const Triplet& left, const Triplet& right);
-}
-
-template<>
-struct std::hash<vcpkg::Triplet>
-{
- size_t operator()(const vcpkg::Triplet& t) const { return t.hash_code(); }
-};