bool IsMatching()

in cpp/inc/bond/core/detail/typeid_value.h [59:106]


bool IsMatching(BondDataType type)
{
    switch (type)
    {
        case bond::BT_BOOL:
            return is_matching<bool, T>::value;

        case bond::BT_UINT8:
            return is_matching<uint8_t, T>::value;

        case bond::BT_UINT16:
            return is_matching<uint16_t, T>::value;

        case bond::BT_UINT32:
            return is_matching<uint32_t, T>::value;

        case bond::BT_UINT64:
            return is_matching<uint64_t, T>::value;

        case bond::BT_FLOAT:
            return is_matching<float, T>::value;

        case bond::BT_DOUBLE:
            return is_matching<double, T>::value;

        case bond::BT_STRING:
            return is_matching<std::string, T>::value;

        case bond::BT_WSTRING:
            return is_matching<std::wstring, T>::value;

        case bond::BT_INT8:
            return is_matching<int8_t, T>::value;

        case bond::BT_INT16:
            return is_matching<int16_t, T>::value;

        case bond::BT_INT32:
            return is_matching<int32_t, T>::value;

        case bond::BT_INT64:
            return is_matching<int64_t, T>::value;

        default:
            BOOST_ASSERT(false);
            return false;
    }
}