Commit a8687fb7 authored by Max Kellermann's avatar Max Kellermann

util/AllocatedString: use `using` instead of `typedef`

parent 3b88bac0
/* /*
* Copyright 2015-2019 Max Kellermann <max.kellermann@gmail.com> * Copyright 2015-2020 Max Kellermann <max.kellermann@gmail.com>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -43,12 +43,12 @@ ...@@ -43,12 +43,12 @@
template<typename T=char> template<typename T=char>
class AllocatedString { class AllocatedString {
public: public:
typedef typename StringPointer<T>::value_type value_type; using value_type = typename StringPointer<T>::value_type;
typedef typename StringPointer<T>::reference reference; using reference = typename StringPointer<T>::reference;
typedef typename StringPointer<T>::const_reference const_reference; using const_reference = typename StringPointer<T>::const_reference;
typedef typename StringPointer<T>::pointer pointer; using pointer = typename StringPointer<T>::pointer;
typedef typename StringPointer<T>::const_pointer const_pointer; using const_pointer = typename StringPointer<T>::const_pointer;
typedef std::size_t size_type; using size_type = std::size_t;
static constexpr value_type SENTINEL = '\0'; static constexpr value_type SENTINEL = '\0';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment