qBittorrent
anonymous_namespace{logger.cpp} Namespace Reference

Functions

template<typename T >
QVector< T > loadFromBuffer (const boost::circular_buffer_space_optimized< T > &src, const int offset=0)
 

Function Documentation

◆ loadFromBuffer()

template<typename T >
QVector<T> anonymous_namespace{logger.cpp}::loadFromBuffer ( const boost::circular_buffer_space_optimized< T > &  src,
const int  offset = 0 
)

Definition at line 39 of file logger.cpp.

40  {
41  QVector<T> ret;
42  ret.reserve(static_cast<typename decltype(ret)::size_type>(src.size()) - offset);
43  std::copy((src.begin() + offset), src.end(), std::back_inserter(ret));
44  return ret;
45  }
flag icons free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to copy

References copy.

Referenced by Logger::getMessages(), and Logger::getPeers().

Here is the caller graph for this function: