dkh.container.stackpayload

  • Declaration

    struct StackPayload(T, size_t MINCAP = 4) if (MINCAP >= 1);

    Stack Payload

    Discussion

    If you don't need dark speed, you should use dkh.container.stack

    • Declaration

      inout inout(T)[] data();

      Data Slice

      Warning: Return value points same place with stackpayload

    • Declaration

      inout ref inout(T) opIndex(size_t i);

    • Declaration

      inout ref inout(T) front();

    • Declaration

      inout ref inout(T) back();

    • Declaration

      void reserve(size_t newCap);

    • Declaration

      void free();

    • Declaration

      void clear();

      This method don't release memory

    • Declaration

      void insertBack(T item);
      template opOpAssign(string op : "~")

    • Declaration

      void removeBack();