Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

rate_policy_access

Helper class to assist implementing a RatePolicy.

Synopsis

Defined in header <boost/beast/core/rate_policy.hpp>

class rate_policy_access
Description

This class is used by the implementation to gain access to the private members of a user-defined object meeting the requirements of RatePolicy. To use it, simply declare it as a friend in your class:

Example
class custom_rate_policy
{
    friend class beast::rate_policy_access;
    ...
See Also

beast::basic_stream


PrevUpHomeNext