FIFO (computing and electronics): Difference between revisions

Content deleted Content added
Removed a stray "v" after the end of the first sentence
m Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
Line 19:
=== Code ===
The following code shows a [[linked list]] FIFO [[C++]] language implementation. In practice, a number of list implementations exist, including popular Unix systems C sys/queue.h macros or the C++ [[Standard Template Library|standard library]] std::list template, avoiding the need for implementing the data structure from scratch.
<sourcesyntaxhighlight lang="cpp">
#include <memory>
#include <stdexcept>
Line 53:
}
};
</syntaxhighlight>
</source>
 
===Head or tail first===