Advertisement
Guest User

Untitled

a guest
Nov 30th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1.  
  2. private:
  3.  
  4.     /** Structure for the internal linked list. */
  5.     struct TNode
  6.     {
  7.         /** Holds a pointer to the next node in the list. */
  8.         TNode* volatile NextNode;
  9.  
  10.         /** Holds the node's item. */
  11.         ItemType Item;
  12.  
  13.         /** Default constructor. */
  14.         TNode()
  15.             : NextNode(nullptr)
  16.         { }
  17.  
  18.         /** Creates and initializes a new node. */
  19.         explicit TNode(const ItemType& InItem)
  20.             : NextNode(nullptr)
  21.             , Item(InItem)
  22.         { }
  23.  
  24.         /** Creates and initializes a new node. */
  25.         explicit TNode(ItemType&& InItem)
  26.             : NextNode(nullptr)
  27.             , Item(MoveTemp(InItem))
  28.         { }
  29.     };
  30.  
  31.     /** Holds a pointer to the head of the list. */
  32.     MS_ALIGN(16) TNode* volatile Head GCC_ALIGN(16);
  33.  
  34.     /** Holds a pointer to the tail of the list. */
  35.     TNode* Tail;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement