boost::posix_time::ptime,
&data::StampedElement::getModificationTime
>
+ >,
+ // Start definition of index #4.
+ // Use StampedElement::getId as a key.
+ boost::multi_index::hashed_non_unique<
+ boost::multi_index::tag<OptionIdIndexTag>,
+ boost::multi_index::const_mem_fun<data::StampedElement, uint64_t,
+ &data::StampedElement::getId>
>
>
> OptionDefContainer;
-// Copyright (C) 2013-2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
namespace isc {
namespace dhcp {
+/// @brief A tag for accessing DHCP options and definitions by id.
+struct OptionIdIndexTag { };
+
/// @brief Simple container for option spaces holding various items.
///
/// This helper class is used to store items of various types
boost::posix_time::ptime,
&data::StampedElement::getModificationTime
>
+ >,
+
+ // Start definition of index #4.
+ // Use StampedElement::getId as a key.
+ boost::multi_index::hashed_non_unique<
+ boost::multi_index::tag<OptionIdIndexTag>,
+ boost::multi_index::const_mem_fun<data::StampedElement, uint64_t,
+ &data::StampedElement::getId>
>
>
> OptionContainer;