Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
a8687fb7
Commit
a8687fb7
authored
Apr 03, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/AllocatedString: use `using` instead of `typedef`
parent
3b88bac0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
AllocatedString.hxx
src/util/AllocatedString.hxx
+7
-7
No files found.
src/util/AllocatedString.hxx
View file @
a8687fb7
/*
* Copyright 2015-20
19
Max Kellermann <max.kellermann@gmail.com>
* Copyright 2015-20
20
Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
@@ -43,12 +43,12 @@
template
<
typename
T
=
char
>
class
AllocatedString
{
public
:
typedef
typename
StringPointer
<
T
>::
value_type
value_type
;
typedef
typename
StringPointer
<
T
>::
reference
reference
;
typedef
typename
StringPointer
<
T
>::
const_reference
const_reference
;
typedef
typename
StringPointer
<
T
>::
pointer
pointer
;
typedef
typename
StringPointer
<
T
>::
const_pointer
const_pointer
;
typedef
std
::
size_t
size_type
;
using
value_type
=
typename
StringPointer
<
T
>::
value_type
;
using
reference
=
typename
StringPointer
<
T
>::
reference
;
using
const_reference
=
typename
StringPointer
<
T
>::
const_reference
;
using
pointer
=
typename
StringPointer
<
T
>::
pointer
;
using
const_pointer
=
typename
StringPointer
<
T
>::
const_pointer
;
using
size_type
=
std
::
size_t
;
static
constexpr
value_type
SENTINEL
=
'\0'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment