1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add sprout::string_ref

support conversion array-like container iterator to pointer
This commit is contained in:
bolero-MURAKAMI 2013-02-19 02:49:10 +09:00
parent fa1d769bdf
commit 1ef8a6a63b
64 changed files with 1570 additions and 254 deletions

View file

@ -38,7 +38,7 @@ namespace sprout {
;
SPROUT_CONSTEXPR_OR_CONST wchar_t sprout::uuids::detail::digits<wchar_t>::dash;
#ifndef SPROUT_NO_UNICODE_LITERALS
#if SPROUT_USE_UNICODE_LITERALS
template<>
struct digits<char16_t> {
public:

View file

@ -2,6 +2,7 @@
#define SPROUT_UUID_HASH_HPP
#include <cstddef>
#include <functional>
#include <sprout/config.hpp>
#include <sprout/uuid/uuid.hpp>
#include <sprout/functional/hash.hpp>

View file

@ -34,8 +34,8 @@ namespace sprout {
public:
typedef std::uint8_t value_type;
#if SPROUT_USE_INDEX_ITERATOR_IMPLEMENTATION
typedef sprout::index_iterator<uuid&> iterator;
typedef sprout::index_iterator<uuid const&> const_iterator;
typedef sprout::index_iterator<uuid&, true> iterator;
typedef sprout::index_iterator<uuid const&, true> const_iterator;
#else
typedef std::uint8_t* iterator;
typedef std::uint8_t const* const_iterator;