Function operator->

Summary

#include <lib/inc/drogon/IOThreadStorage.h>

(1) ValueType * operator->()

(2) const ValueType * operator->() const

Function overload

Synopsis

#include <lib/inc/drogon/IOThreadStorage.h>

ValueType * operator->()

Description

No description yet.

Source

Lines 134-139 in lib/inc/drogon/IOThreadStorage.h.

inline ValueType *operator->()
{
    size_t idx = app().getCurrentThreadIndex();
    assert(idx < storage_.size());
    return &storage_[idx];
}

Synopsis

#include <lib/inc/drogon/IOThreadStorage.h>

const ValueType * operator->() const

Description

No description yet.

Source

Lines 146-151 in lib/inc/drogon/IOThreadStorage.h.

inline const ValueType *operator->() const
{
    size_t idx = app().getCurrentThreadIndex();
    assert(idx < storage_.size());
    return &storage_[idx];
}





Add Discussion as Guest

Log in