link: simplify with DelegationList
refs #4055
Change-Id: Id8280037beb7d128cda8faa8ed1ed21e2209ba97
diff --git a/src/delegation-list.hpp b/src/delegation-list.hpp
index 9f74399..9ef5d97 100644
--- a/src/delegation-list.hpp
+++ b/src/delegation-list.hpp
@@ -23,6 +23,7 @@
#define NDN_DELEGATION_LIST_HPP
#include "delegation.hpp"
+#include <initializer_list>
namespace ndn {
@@ -48,6 +49,13 @@
*/
DelegationList();
+ /** \brief construct a sorted DelegationList with specified delegations
+ *
+ * This is equivalent to inserting each delegation into an empty DelegationList with INS_REPLACE
+ * conflict resolution.
+ */
+ DelegationList(std::initializer_list<Delegation> dels);
+
/** \brief decode a DelegationList
* \sa wireDecode
*/