mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +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
|
@ -21,9 +21,9 @@ namespace zeek::probabilistic::detail
|
|||
class BitVector
|
||||
{
|
||||
public:
|
||||
typedef uint64_t block_type;
|
||||
typedef size_t size_type;
|
||||
typedef bool const_reference;
|
||||
using block_type = uint64_t;
|
||||
using size_type = size_t;
|
||||
using const_reference = bool;
|
||||
|
||||
static size_type npos;
|
||||
static block_type bits_per_block;
|
||||
|
|
|
@ -25,8 +25,8 @@ class BitVector;
|
|||
class CounterVector
|
||||
{
|
||||
public:
|
||||
typedef size_t size_type;
|
||||
typedef uint64_t count_type;
|
||||
using size_type = size_t;
|
||||
using count_type = uint64_t;
|
||||
|
||||
/**
|
||||
* Constructs a counter vector having cells of a given width.
|
||||
|
|
|
@ -29,8 +29,8 @@ enum HasherType
|
|||
class Hasher
|
||||
{
|
||||
public:
|
||||
typedef zeek::detail::hash_t digest;
|
||||
typedef std::vector<digest> digest_vector;
|
||||
using digest = zeek::detail::hash_t;
|
||||
using digest_vector = std::vector<digest>;
|
||||
struct seed_t
|
||||
{
|
||||
// actually HH_U64, which has the same type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue