Replace typedefs in C++ with using declarations (#1339)

These are more readable than typedefs. C headers were left alone.
This commit is contained in:
Tyler Veness
2018-09-26 00:09:25 -07:00
committed by Peter Johnson
parent 26c33a9a56
commit 8b1274d744
15 changed files with 31 additions and 33 deletions

View File

@@ -21,13 +21,13 @@ class circular_buffer {
public:
explicit circular_buffer(size_t size);
typedef T value_type;
typedef value_type& reference;
typedef const value_type& const_reference;
typedef value_type* pointer;
typedef size_t size_type;
typedef std::forward_iterator_tag iterator_category;
typedef std::ptrdiff_t difference_type;
using value_type = T;
using reference = value_type&;
using const_reference = const value_type&;
using pointer = value_type*;
using size_type = size_t;
using iterator_category = std::forward_iterator_tag;
using difference_type = std::ptrdiff_t;
size_type size() const;
T& front();