Sha256: 770aadf53e91bb63f48cb5b6f30598ebac8298037d1143621a9e8aa38f400af3

Contents?: true

Size: 1.24 KB

Versions: 8

Compression:

Stored size: 1.24 KB

Contents

//
// MessagePack for C++ static resolution routine
//
// Copyright (C) 2015 MIZUKI Hirata
//
//    Distributed under the Boost Software License, Version 1.0.
//    (See accompanying file LICENSE_1_0.txt or copy at
//    http://www.boost.org/LICENSE_1_0.txt)
//

#ifndef MSGPACK_ITERATOR_HPP
#define MSGPACK_ITERATOR_HPP
#if !defined(MSGPACK_USE_CPP03)

#include <msgpack/object_fwd.hpp>

namespace msgpack
{
    /// @cond
    MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS)
    {
    /// @endcond
        inline object_kv* begin(object_map &map) { return map.ptr; }
        inline const object_kv* begin(const object_map &map) { return map.ptr; }
        inline object_kv* end(object_map &map) { return map.ptr + map.size; }
        inline const object_kv* end(const object_map &map) { return map.ptr + map.size; }

        inline object* begin(object_array &array) { return array.ptr; }
        inline const object* begin(const object_array &array) { return array.ptr; }
        inline object* end(object_array &array) { return array.ptr + array.size; }
        inline const object* end(const object_array &array) { return array.ptr + array.size; }
    /// @cond
    }
    /// @endcond
}

#endif // !defined(MSGPACK_USE_CPP03)
#endif // MSGPACK_ITERATOR_HPP

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rroonga-6.0.5-x64-mingw32 vendor/local/include/msgpack/iterator.hpp
rroonga-6.0.5-x86-mingw32 vendor/local/include/msgpack/iterator.hpp
rroonga-6.0.4-x86-mingw32 vendor/local/include/msgpack/iterator.hpp
rroonga-6.0.4-x64-mingw32 vendor/local/include/msgpack/iterator.hpp
rroonga-6.0.2-x64-mingw32 vendor/local/include/msgpack/iterator.hpp
rroonga-6.0.2-x86-mingw32 vendor/local/include/msgpack/iterator.hpp
rroonga-6.0.0-x64-mingw32 vendor/local/include/msgpack/iterator.hpp
rroonga-6.0.0-x86-mingw32 vendor/local/include/msgpack/iterator.hpp