Function endian_load

Synopsis

#include "breeze/endianness/endian_codec.hpp"

template <typename EndianPolicy, typename T, typename InputIter>
T endian_load(InputIter it)

Description

Convenience wrapper around endian_codec::decode()

endian_load< EndianPolicy, T >( it ) is equivalent to:

typedef typename std::iterator_traits< InputIter >::value_type
                    Byte ;
return breeze::endian_codec< EndianPolicy, T, Byte >::decode( it ) ;

Source

Lines 295-303 in breeze/endianness/endian_codec.hpp.

template< typename EndianPolicy, typename T, typename InputIter >
T
endian_load( InputIter it )
{
    typedef typename std::iterator_traits< InputIter >::value_type
                        Byte ;
    return breeze::endian_codec< EndianPolicy, T, Byte >
        ::decode( it ) ;
}