mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Move Dictionary/PDict, List/PList, and Queue/PQueue to zeek namespace
This commit is contained in:
parent
4a1e17f4e0
commit
464efbe66a
30 changed files with 172 additions and 138 deletions
10
src/List.h
10
src/List.h
|
@ -26,6 +26,10 @@
|
|||
#include <cassert>
|
||||
#include "util.h"
|
||||
|
||||
//enum class [[deprecated("Remove in v4.1. Use zeek::ListOrder instead.")]] ListOrder : int { ORDERED, UNORDERED };
|
||||
|
||||
namespace zeek {
|
||||
|
||||
enum class ListOrder : int { ORDERED, UNORDERED };
|
||||
|
||||
template<typename T, ListOrder Order = ListOrder::ORDERED>
|
||||
|
@ -331,7 +335,11 @@ template<typename T, ListOrder Order = ListOrder::ORDERED>
|
|||
using PList = List<T*, Order>;
|
||||
|
||||
// Popular type of list: list of strings.
|
||||
typedef PList<char> name_list;
|
||||
using name_list = PList<char>;
|
||||
|
||||
} // namespace zeek
|
||||
|
||||
using ListOrder [[deprecated("Remove in v4.1. Use zeek::ListOrder instead.")]] = zeek::ListOrder;
|
||||
|
||||
// Macro to visit each list element in turn.
|
||||
#define loop_over_list(list, iterator) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue