Skip to content

Commit 4a37dbb

Browse files
committed
[container] Deprecate outdated containers
1 parent ad7b390 commit 4a37dbb

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/modm/container/doubly_linked_list.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace modm
3030
* \ingroup modm_container
3131
*/
3232
template <typename T, typename Allocator = std::allocator<T>>
33-
class DoublyLinkedList
33+
class [[deprecated("Use std::list instead")]] DoublyLinkedList
3434
{
3535
public:
3636
using const_iterator = std::list<T>::const_iterator;

src/modm/container/dynamic_array.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace modm
4747
* \ingroup modm_container
4848
*/
4949
template <typename T, typename Allocator = std::allocator<T>>
50-
class DynamicArray
50+
class [[deprecated("Use std::vector instead")]] DynamicArray
5151
{
5252
public:
5353
using SizeType = std::size_t;

src/modm/container/linked_list.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace modm
3939
* This would make operations in xpcc very inefficient.
4040
*/
4141
template <typename T, typename Allocator = std::allocator<T>>
42-
class LinkedList : public DoublyLinkedList<T, Allocator>
42+
class [[deprecated("Use std::list instead")]] LinkedList : public DoublyLinkedList<T, Allocator>
4343
{
4444
public:
4545
using DoublyLinkedList<T, Allocator>::DoublyLinkedList;

src/modm/container/pair.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace modm
6666
* \ingroup modm_container
6767
*/
6868
template<typename T1, typename T2>
69-
class Pair : public std::pair<T1, T2>
69+
class [[deprecated("Use std::pair instead")]] Pair : public std::pair<T1, T2>
7070
{
7171
public:
7272
using FirstType = T1;

src/modm/container/queue.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace modm
3636
*/
3737
template<typename T,
3838
typename Container>
39-
class Queue
39+
class [[deprecated("Use std::queue instead")]] Queue
4040
{
4141
public:
4242
typedef typename Container::Size Size;

src/modm/container/stack.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace modm
3535
*/
3636
template<typename T,
3737
typename Container>
38-
class Stack
38+
class [[deprecated("Use std::stack instead")]] Stack
3939
{
4040
public:
4141
typedef typename Container::Size Size;

0 commit comments

Comments
 (0)