mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Replace most uses of typedef with using for type aliasing
This commit is contained in:
parent
7101f30646
commit
64748edab1
44 changed files with 100 additions and 101 deletions
|
@ -17,7 +17,7 @@ namespace zeek
|
|||
//
|
||||
class VectorVal;
|
||||
|
||||
typedef u_char* byte_vec;
|
||||
using byte_vec = u_char*;
|
||||
|
||||
/**
|
||||
* A container type for holding blocks of byte data. This can be used for
|
||||
|
@ -28,18 +28,18 @@ typedef u_char* byte_vec;
|
|||
class String
|
||||
{
|
||||
public:
|
||||
typedef std::vector<String*> Vec;
|
||||
typedef Vec::iterator VecIt;
|
||||
typedef Vec::const_iterator VecCIt;
|
||||
using Vec = std::vector<String*>;
|
||||
using VecIt = Vec::iterator;
|
||||
using VecCIt = Vec::const_iterator;
|
||||
|
||||
typedef std::vector<const String*> CVec;
|
||||
typedef Vec::iterator CVecIt;
|
||||
typedef Vec::const_iterator CVecCIt;
|
||||
using CVec = std::vector<const String*>;
|
||||
using CVecIt = Vec::iterator;
|
||||
using CVecCIt = Vec::const_iterator;
|
||||
|
||||
// IdxVecs are vectors of indices of characters in a string.
|
||||
typedef std::vector<int> IdxVec;
|
||||
typedef IdxVec::iterator IdxVecIt;
|
||||
typedef IdxVec::const_iterator IdxVecCIt;
|
||||
using IdxVec = std::vector<int>;
|
||||
using IdxVecIt = IdxVec::iterator;
|
||||
using IdxVecCIt = IdxVec::const_iterator;
|
||||
|
||||
// Constructors creating internal copies of the data passed in.
|
||||
String(const u_char* str, int arg_n, bool add_NUL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue