00001 #ifndef guard_value_traits_hpp
00002 #define guard_value_traits_hpp
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #include <algorithm>
00015
00016 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00017
00018 namespace TAO
00019 {
00020 namespace details
00021 {
00022
00023 template<typename T, bool dummy>
00024 struct value_traits
00025 {
00026 typedef T value_type;
00027 typedef T const const_value_type;
00028
00029 inline static void zero_range(
00030 value_type * begin , value_type * end)
00031 {
00032 std::fill(begin, end, value_type ());
00033 }
00034
00035 inline static void initialize_range(
00036 value_type * begin, value_type * end)
00037 {
00038 std::fill(begin, end, value_type ());
00039 }
00040
00041 inline static void copy_range(
00042 value_type * begin, value_type * end, value_type *dst)
00043 {
00044 std::copy(begin, end, dst);
00045 }
00046 };
00047
00048 }
00049 }
00050
00051 TAO_END_VERSIONED_NAMESPACE_DECL
00052
00053 #endif // guard_value_traits_hpp