This function inserts an S element at the back if there is space. Otherwise the behaviour is undefined.
1 DArray!(int) fsa; 2 fsa.insertBack(1337); 3 assert(fsa.length == 1); 4 assert(fsa[0] == 1337); 5 6 fsa.insertBack(99, 5); 7 8 foreach(it; fsa[1 .. fsa.length]) { 9 assert(it == 99); 10 }
See Implementation
This function inserts an S element at the back if there is space. Otherwise the behaviour is undefined.