31 lines
740 B
C++
31 lines
740 B
C++
// vi:set ft=cpp: -*- Mode: C++ -*-
|
|
/**
|
|
* \file
|
|
* Implementation of a list of unique-ptr-managed objects.
|
|
*/
|
|
/*
|
|
* Copyright (C) 2018-2019, 2022, 2024 Kernkonzept GmbH.
|
|
* Author(s): Sarah Hoffmann <sarah.hoffmann@kernkonzept.com>
|
|
*
|
|
* License: see LICENSE.spdx (in this directory or the directories above)
|
|
*/
|
|
#pragma once
|
|
|
|
#include <l4/cxx/unique_ptr>
|
|
|
|
#include "bits/smart_ptr_list.h"
|
|
|
|
namespace cxx {
|
|
|
|
/// Item for list linked with cxx::unique_ptr.
|
|
template <typename T>
|
|
using Unique_ptr_list_item = Bits::Smart_ptr_list_item<T, cxx::unique_ptr<T> >;
|
|
|
|
/**
|
|
* Single-linked list where elements are connected with a cxx::unique_ptr.
|
|
*/
|
|
template <typename T>
|
|
using Unique_ptr_list = Bits::Smart_ptr_list<Unique_ptr_list_item<T> >;
|
|
|
|
}
|