VMime
context::switcher< CTX_CLASS > Class Template Reference

#include <context.hpp>

Public Member Functions

 switcher (CTX_CLASS &newCtx)
 ~switcher ()

Detailed Description

template<typename CTX_CLASS>
class vmime::context::switcher< CTX_CLASS >

Switches between contexts temporarily.

Constructor & Destructor Documentation

◆ switcher()

template<typename CTX_CLASS>
switcher ( CTX_CLASS & newCtx)

Switches to the specified context.

Default context will temporarily use the data of the specified new context during the lifetime of this object.

Parameters
newCtxnew context

◆ ~switcher()

template<typename CTX_CLASS>
~switcher ( )

Restores back saved context.


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