Provides read/write context class with the ability to handle std::vector
conversion.
Definition in file vector_conv.hpp.
Go to the source code of this file.
#include <userver/proto-structs/io/std/vector.hpp>
#include <type_traits>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/repeated_ptr_field.h>
#include <userver/proto-structs/io/context.hpp>
#include <userver/proto-structs/type_mapping.hpp>
Namespaces | |
namespace | proto_structs |
Top namespace for the proto-structs library. | |
namespace | proto_structs::io |
Namespace for conversion utlities and predefined proto-structs conversion hooks for well-known std/userver types. | |
Functions | |
template<typename TItem, typename TAllocator, proto_structs::traits::ProtoRepeated TRepeated> | |
std::vector< TItem, TAllocator > | proto_structs::io::ReadProtoField (ReadContext &ctx, To< std::vector< TItem, TAllocator > >, int field_number, const TRepeated &message_field) |
template<typename TItem, typename TAllocator, proto_structs::traits::ProtoRepeated TRepeated> | |
void | proto_structs::io::WriteProtoField (WriteContext &ctx, const std::vector< TItem, TAllocator > &struct_field, int field_number, TRepeated &message_field) |
template<typename TItem, typename TAllocator, proto_structs::traits::ProtoRepeated TRepeated> | |
void | proto_structs::io::WriteProtoField (WriteContext &ctx, std::vector< TItem, TAllocator > &&struct_field, int field_number, TRepeated &message_field) |