Celeritas 0.7-develop+a3e14d7
Loading...
Searching...
No Matches
Public Attributes | Friends | List of all members
celeritas::StreamableContainer< T > Struct Template Reference

Helper class to print a contiguous range of data. More...

#include <StreamableContainer.hh>

Public Attributes

T const * data {}
 
std::size_t size {}
 

Friends

std::ostream & operator<< (std::ostream &os, StreamableContainer sc)
 Write a container to a stream.
 

Detailed Description

template<class T>
struct celeritas::StreamableContainer< T >

Helper class to print a contiguous range of data.

Since this class is used by both Array and Span, it is templated solely on the item type, and directly uses a non-owning pointer with a size.

std::cout << StreamableContainer{s.data(), s.size()} << std::endl;
Helper class to print a contiguous range of data.
Definition StreamableContainer.hh:58

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