util/StringPointer: use using instead of typedef

This commit is contained in:
Max Kellermann 2020-04-03 15:24:43 +02:00
parent f0923231d0
commit 358f231391

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2015 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
@ -36,11 +36,11 @@
template<typename T=char> template<typename T=char>
class StringPointer { class StringPointer {
public: public:
typedef T value_type; using value_type = T;
typedef T &reference; using reference = T &;
typedef const T &const_reference; using const_reference = const T &;
typedef T *pointer; using pointer = T *;
typedef const T *const_pointer; using const_pointer = const T *;
static constexpr value_type SENTINEL = '\0'; static constexpr value_type SENTINEL = '\0';