mesos: Replaced instances of 'std::size_t' with 'size_t'.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/a6cae9f1 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/a6cae9f1 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/a6cae9f1 Branch: refs/heads/master Commit: a6cae9f1410d1ff65b5cf308fab20da47eebf3ab Parents: 5408b16 Author: Michael Park <[email protected]> Authored: Thu Aug 27 22:02:48 2015 -0400 Committer: Michael Park <[email protected]> Committed: Thu Aug 27 22:02:48 2015 -0400 ---------------------------------------------------------------------- include/mesos/type_utils.hpp | 34 +++++++++++++++++----------------- include/mesos/v1/mesos.hpp | 14 +++++++------- src/linux/cgroups.hpp | 4 ++-- src/linux/routing/filter/ip.hpp | 4 ++-- src/messages/log.hpp | 4 ++-- src/tests/module.hpp | 4 ++-- 6 files changed, 32 insertions(+), 32 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/a6cae9f1/include/mesos/type_utils.hpp ---------------------------------------------------------------------- diff --git a/include/mesos/type_utils.hpp b/include/mesos/type_utils.hpp index 8d27ef4..1c8f95b 100644 --- a/include/mesos/type_utils.hpp +++ b/include/mesos/type_utils.hpp @@ -376,7 +376,7 @@ namespace std { template <> struct hash<mesos::CommandInfo_URI> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::CommandInfo_URI argument_type; @@ -401,7 +401,7 @@ struct hash<mesos::CommandInfo_URI> template <> struct hash<mesos::ContainerID> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::ContainerID argument_type; @@ -417,7 +417,7 @@ struct hash<mesos::ContainerID> template <> struct hash<mesos::ExecutorID> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::ExecutorID argument_type; @@ -433,7 +433,7 @@ struct hash<mesos::ExecutorID> template <> struct hash<mesos::FrameworkID> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::FrameworkID argument_type; @@ -449,7 +449,7 @@ struct hash<mesos::FrameworkID> template <> struct hash<mesos::OfferID> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::OfferID argument_type; @@ -465,7 +465,7 @@ struct hash<mesos::OfferID> template <> struct hash<mesos::SlaveID> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::SlaveID argument_type; @@ -481,7 +481,7 @@ struct hash<mesos::SlaveID> template <> struct hash<mesos::TaskID> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::TaskID argument_type; @@ -497,14 +497,14 @@ struct hash<mesos::TaskID> template <> struct hash<mesos::TaskState> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::TaskState argument_type; result_type operator()(const argument_type& taskState) const { // Use the underlying type of the enum as hash value. - return static_cast<std::size_t>(taskState); + return static_cast<size_t>(taskState); } }; @@ -512,14 +512,14 @@ struct hash<mesos::TaskState> template <> struct hash<mesos::TaskStatus_Source> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::TaskStatus_Source argument_type; result_type operator()(const argument_type& source) const { // Use the underlying type of the enum as hash value. - return static_cast<std::size_t>(source); + return static_cast<size_t>(source); } }; @@ -527,14 +527,14 @@ struct hash<mesos::TaskStatus_Source> template <> struct hash<mesos::TaskStatus_Reason> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::TaskStatus_Reason argument_type; result_type operator()(const argument_type& reason) const { // Use the underlying type of the enum as hash value. - return static_cast<std::size_t>(reason); + return static_cast<size_t>(reason); } }; @@ -542,14 +542,14 @@ struct hash<mesos::TaskStatus_Reason> template <> struct hash<mesos::Image_Type> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::Image_Type argument_type; result_type operator()(const argument_type& imageType) const { // Use the underlying type of the enum as hash value. - return static_cast<std::size_t>(imageType); + return static_cast<size_t>(imageType); } }; @@ -557,13 +557,13 @@ struct hash<mesos::Image_Type> template <> struct hash<std::pair<mesos::FrameworkID, mesos::ExecutorID>> { - typedef std::size_t result_type; + typedef size_t result_type; typedef std::pair<mesos::FrameworkID, mesos::ExecutorID> argument_type; result_type operator()(const argument_type& pair) const { - std::size_t seed = 0; + size_t seed = 0; boost::hash_combine(seed, std::hash<mesos::FrameworkID>()(pair.first)); boost::hash_combine(seed, std::hash<mesos::ExecutorID>()(pair.second)); return seed; http://git-wip-us.apache.org/repos/asf/mesos/blob/a6cae9f1/include/mesos/v1/mesos.hpp ---------------------------------------------------------------------- diff --git a/include/mesos/v1/mesos.hpp b/include/mesos/v1/mesos.hpp index 70f63a3..0d695f3 100644 --- a/include/mesos/v1/mesos.hpp +++ b/include/mesos/v1/mesos.hpp @@ -327,7 +327,7 @@ namespace std { template <> struct hash<mesos::v1::CommandInfo::URI> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::v1::CommandInfo::URI argument_type; @@ -352,7 +352,7 @@ struct hash<mesos::v1::CommandInfo::URI> template <> struct hash<mesos::v1::ContainerID> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::v1::ContainerID argument_type; @@ -368,7 +368,7 @@ struct hash<mesos::v1::ContainerID> template <> struct hash<mesos::v1::ExecutorID> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::v1::ExecutorID argument_type; @@ -384,7 +384,7 @@ struct hash<mesos::v1::ExecutorID> template <> struct hash<mesos::v1::FrameworkID> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::v1::FrameworkID argument_type; @@ -400,7 +400,7 @@ struct hash<mesos::v1::FrameworkID> template <> struct hash<mesos::v1::OfferID> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::v1::OfferID argument_type; @@ -416,7 +416,7 @@ struct hash<mesos::v1::OfferID> template <> struct hash<mesos::v1::AgentID> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::v1::AgentID argument_type; @@ -432,7 +432,7 @@ struct hash<mesos::v1::AgentID> template <> struct hash<mesos::v1::TaskID> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::v1::TaskID argument_type; http://git-wip-us.apache.org/repos/asf/mesos/blob/a6cae9f1/src/linux/cgroups.hpp ---------------------------------------------------------------------- diff --git a/src/linux/cgroups.hpp b/src/linux/cgroups.hpp index f0e56b3..204c530 100644 --- a/src/linux/cgroups.hpp +++ b/src/linux/cgroups.hpp @@ -656,14 +656,14 @@ namespace std { template <> struct hash<cgroups::memory::pressure::Level> { - typedef std::size_t result_type; + typedef size_t result_type; typedef cgroups::memory::pressure::Level argument_type; result_type operator()(const argument_type& level) const { // Use the underlying type of the enum as hash value. - return static_cast<std::size_t>(level); + return static_cast<size_t>(level); } }; http://git-wip-us.apache.org/repos/asf/mesos/blob/a6cae9f1/src/linux/routing/filter/ip.hpp ---------------------------------------------------------------------- diff --git a/src/linux/routing/filter/ip.hpp b/src/linux/routing/filter/ip.hpp index 29e0e6d..86c585f 100644 --- a/src/linux/routing/filter/ip.hpp +++ b/src/linux/routing/filter/ip.hpp @@ -213,13 +213,13 @@ namespace std { template <> struct hash<routing::filter::ip::PortRange> { - typedef std::size_t result_type; + typedef size_t result_type; typedef routing::filter::ip::PortRange argument_type; result_type operator()(const argument_type& range) const { - std::size_t seed = 0; + size_t seed = 0; boost::hash_combine(seed, range.begin()); boost::hash_combine(seed, range.end()); return seed; http://git-wip-us.apache.org/repos/asf/mesos/blob/a6cae9f1/src/messages/log.hpp ---------------------------------------------------------------------- diff --git a/src/messages/log.hpp b/src/messages/log.hpp index 01f295e..bf1eae3 100644 --- a/src/messages/log.hpp +++ b/src/messages/log.hpp @@ -55,14 +55,14 @@ namespace std { template <> struct hash<mesos::internal::log::Metadata_Status> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::internal::log::Metadata_Status argument_type; result_type operator()(const argument_type& status) const { // Use the underlying type of the enum as hash value. - return static_cast<std::size_t>(status); + return static_cast<size_t>(status); } }; http://git-wip-us.apache.org/repos/asf/mesos/blob/a6cae9f1/src/tests/module.hpp ---------------------------------------------------------------------- diff --git a/src/tests/module.hpp b/src/tests/module.hpp index 682734a..0820978 100644 --- a/src/tests/module.hpp +++ b/src/tests/module.hpp @@ -88,14 +88,14 @@ namespace std { template <> struct hash<mesos::internal::tests::ModuleID> { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::internal::tests::ModuleID argument_type; result_type operator()(const argument_type& moduleId) const { // Use the underlying type of the enum as hash value. - return static_cast<std::size_t>(moduleId); + return static_cast<size_t>(moduleId); } };
