// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include #include namespace vespalib { namespace slime { // internal traits for data type types template struct TypeTraits {}; template<> struct TypeTraits { static void assertIsCreatedEmpty() {} }; template<> struct TypeTraits { typedef bool PassType; typedef PassType StoreType; static const bool unsetValue = false; }; template<> struct TypeTraits { typedef int64_t PassType; typedef PassType StoreType; static const int64_t unsetValue = 0; }; template<> struct TypeTraits { typedef double PassType; typedef PassType StoreType; static const double unsetValue; }; template<> struct TypeTraits { typedef Memory PassType; static const Memory unsetValue; }; template<> struct TypeTraits { typedef Memory PassType; static const Memory unsetValue; }; template<> struct TypeTraits { static void assertIsCreatedEmpty() {} }; template<> struct TypeTraits { static void assertIsCreatedEmpty() {} }; } // namespace vespalib::slime } // namespace vespalib