Skip to content

Create a LinkedList by initializer_list ? #3

@pezy

Description

@pezy

We always need create some LinkedList in our unit test. Initializer_list is the most easiest way. How to use initializer_list to generate a LinkedList?

For instance:

  • Input: {1,2,3,4,5,6,7,8,9}
  • Output: 1->2->3->4->5->6->7->8->9

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions