Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Header <boost/algorithm/hex.hpp>

Convert sequence of integral types into a sequence of hexadecimal characters and back. Based on the MySQL functions HEX and UNHEX.

Marshall Clow

namespace boost {
  namespace algorithm {
    struct hex_decode_error;
    struct not_enough_input;
    struct non_hex_input;
    template<typename InputIterator, typename OutputIterator> 
      unspecified hex(InputIterator, InputIterator, OutputIterator);
    template<typename T, typename OutputIterator> 
      boost::enable_if< boost::is_integral< T >, OutputIterator >::type 
      hex(const T *, OutputIterator);
    template<typename Range, typename OutputIterator> 
      unspecified hex(const Range &, OutputIterator);
    template<typename InputIterator, typename OutputIterator> 
      OutputIterator unhex(InputIterator, InputIterator, OutputIterator);
    template<typename T, typename OutputIterator> 
      OutputIterator unhex(const T *, OutputIterator);
    template<typename Range, typename OutputIterator> 
      OutputIterator unhex(const Range &, OutputIterator);
    template<typename String> String hex(const String &);
    template<typename String> String unhex(const String &);
  }
}

PrevUpHomeNext