55. Type Aliases

Question.2

A developer creates a type alias for a templated ring buffer:

template<typename T>
class RingBuffer { /* ... */ };

using AudioBuffer = RingBuffer<float>;
using CommandBuffer = RingBuffer<uint8_t>;

Can this be done with typedef?

Need Help? Refer to the Quick Guide below

Select Answer