C++ Rest SDK
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Public Types | Static Public Member Functions | List of all members
Concurrency::streams::container_stream< _CollectionType > Class Template Reference

A static class to allow users to create input and out streams based off STL collections. The sole purpose of this class to avoid users from having to know anything about stream buffers. More...

#include <containerstream.h>

Public Types

typedef _CollectionType::value_type char_type
 
typedef container_buffer< _CollectionType > buffer_type
 

Static Public Member Functions

static concurrency::streams::basic_istream< char_type > open_istream (_CollectionType data)
 Creates an input stream given an STL container. More...
 
static concurrency::streams::basic_ostream< char_type > open_ostream ()
 Creates an output stream using an STL container as the storage. More...
 

Detailed Description

template<typename _CollectionType>
class Concurrency::streams::container_stream< _CollectionType >

A static class to allow users to create input and out streams based off STL collections. The sole purpose of this class to avoid users from having to know anything about stream buffers.

Template Parameters
_CollectionTypeThe type of the STL collection.

Member Function Documentation

template<typename _CollectionType >
static concurrency::streams::basic_istream<char_type> Concurrency::streams::container_stream< _CollectionType >::open_istream ( _CollectionType  data)
inlinestatic

Creates an input stream given an STL container.

STL container to back the input stream.

Returns
An input stream.
template<typename _CollectionType >
static concurrency::streams::basic_ostream<char_type> Concurrency::streams::container_stream< _CollectionType >::open_ostream ( )
inlinestatic

Creates an output stream using an STL container as the storage.

Returns
An output stream.

The documentation for this class was generated from the following file: