A class template is a class with type or value parameters, written once and made into a real class for each set of arguments: std::vector<int> and std::vector<std::string> are two classes from one template. You write your own the same way, with template <typename T, std::size_t N> before the class.
Type parameters let one container hold any element type. Non-type parameters, such as a size N, are compile-time constants, so an array member T items_[N] lives inside the object itself with no heap allocation. That is one reason low-latency code likes them: FixedStack<Order, 1024> never calls new.
Member functions written inside the class body need no extra syntax and can use T and N directly. Inside the class, the plain name FixedStack means the current instantiation. Each instantiation is a separate type, so FixedStack<int, 8> and FixedStack<int, 16> cannot be assigned to each other.
The capacity is part of the type, so the storage is part of the object.