Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::LFQueue< T, Alloc >::Node Struct Reference

Public Member Functions

 Node (const T &data)
 构造函数,使用数据初始化节点。
 Node (T &&data)
 构造函数,使用移动数据初始化节点。

Public Attributes

T data_
 节点数据
std::atomic< Node * > next_
 指向下一个节点的原子指针

Constructor & Destructor Documentation

◆ Node() [1/2]

template<class T, class Alloc = std::allocator<T>>
console::LFQueue< T, Alloc >::Node::Node ( const T & data)
inline

构造函数,使用数据初始化节点。

◆ Node() [2/2]

template<class T, class Alloc = std::allocator<T>>
console::LFQueue< T, Alloc >::Node::Node ( T && data)
inline

构造函数,使用移动数据初始化节点。

Member Data Documentation

◆ data_

template<class T, class Alloc = std::allocator<T>>
T console::LFQueue< T, Alloc >::Node::data_

节点数据

◆ next_

template<class T, class Alloc = std::allocator<T>>
std::atomic<Node *> console::LFQueue< T, Alloc >::Node::next_

指向下一个节点的原子指针


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