Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QScopeGuard< F > Class Template Reference

#include <qscopeguard.h>

Collaboration diagram for QScopeGuard< F >:

Public Member Functions

Q_NODISCARD_CTOR QScopeGuard (F &&f) noexcept
Q_NODISCARD_CTOR QScopeGuard (const F &f) noexcept
Q_NODISCARD_CTOR QScopeGuard (QScopeGuard &&other) noexcept
 ~QScopeGuard () noexcept
void dismiss () noexcept
void commit () noexcept(std::is_nothrow_invocable_v< F >)

Friends

class ::tst_QScopeGuard

Detailed Description

template<typename F>
class QScopeGuard< F >

Definition at line 21 of file qscopeguard.h.

Constructor & Destructor Documentation

◆ QScopeGuard() [1/3]

template<typename F>
Q_NODISCARD_CTOR QScopeGuard< F >::QScopeGuard ( F && f)
inlineexplicitnoexcept

Definition at line 25 of file qscopeguard.h.

◆ QScopeGuard() [2/3]

template<typename F>
Q_NODISCARD_CTOR QScopeGuard< F >::QScopeGuard ( const F & f)
inlineexplicitnoexcept

Definition at line 31 of file qscopeguard.h.

◆ QScopeGuard() [3/3]

template<typename F>
Q_NODISCARD_CTOR QScopeGuard< F >::QScopeGuard ( QScopeGuard< F > && other)
inlinenoexcept

Definition at line 37 of file qscopeguard.h.

◆ ~QScopeGuard()

template<typename F>
QScopeGuard< F >::~QScopeGuard ( )
inlinenoexcept

Definition at line 43 of file qscopeguard.h.

Member Function Documentation

◆ commit()

template<typename F>
void QScopeGuard< F >::commit ( )
inlinenoexcept

Definition at line 54 of file qscopeguard.h.

◆ dismiss()

template<typename F>
void QScopeGuard< F >::dismiss ( )
inlinenoexcept

Definition at line 49 of file qscopeguard.h.

◆ ::tst_QScopeGuard

template<typename F>
friend class ::tst_QScopeGuard
friend

Definition at line 63 of file qscopeguard.h.


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