Repository navigation
Modern LinkedList LinkedNode
Paul Squires edited this page Oct 19, 2026
·
5 revisions
Home › LinkedList › LinkedList › LinkedNode
Holds one LinkedList value and the links to its neighbours; normal code never uses it.
LinkedNode( of T )#import "std/containers"
using containers
'' The node the list is built from: a value and two raw pointers.
'' Ordinary code never touches it -- Push*/Pop*/Front/Back and the
'' iterator are the interface -- but it is what makes the ownership
'' rules visible.
dim q as LinkedList( of int32 )
dim as int32 x = 42
q.PushBack( x )
'' The list holds RAW NODE POINTERS, unlike Array/Map/Set whose storage
'' is a dynamic array the language copies and frees for you. So the copy
'' constructor, `operator let` and destructor are all written out: a
'' default copy would share one chain between two lists and double-free.
dim copy_ as LinkedList( of int32 ) = q '' deep copy, own chain
copy_.Front( ) = 99
print q.Front( ) & " " & copy_.Front( ) '' 42 99Library: LinkedList
Category: LinkedList
Documented under: Implementation
tiko-lang · Home · Feature Index · Keyword Index · License
FreeBASIC manual pages reproduced under the GNU FDL 1.3.
- Generics
- Interfaces
- For Each
- Iterators
- Tuples
- Array Results
- Defer
- Lambdas
- Block Strings
- String Slices
- Embed
- Typed Variadics
- C Header Import
- Foreign Library Linking
- UString
- Fixed-Width Types
- Nullptr
- String Library
- Format
- Array
- Map
- Set
- LinkedList
- OrderedMap
- OrderedSet
- Sorting
- Optional
- Result
- Smart Pointers
- Date and Time (Chrono)
- Filesystem
- File Streams
- Config (INI and TOML)
- Codec
- Hash
- UUID
- OS
- Process
- Net
- HTTP and TLS
- Math Library
- Finance
- Logging
- Terminal TUI Library
- PsControls
- tkControls
- sys/win
- Goroutines and Channels
- LLVM Backend
- tiko build
- TIKO_COMPILER
- Variable Declarations
- Standard Data Types
- User Defined Types
- Procedures
- Operators
- Control Flow Statements
- Converting Data Types
- Array Functions
- String Functions
- Mathematical Functions
- Bit Manipulation
- Date and Time Functions
- File I/O Functions
- Console Functions
- User Input (Runtime Library)
- User Input Functions (Graphics Library)
- Screen Functions
- 2D Drawing Functions
- Graphics Library Reference
- Graphics Keyword List
- Memory Functions
- Threading Support Functions
- Error Handling Functions
- Operating System Functions
- Preprocessor
- Intrinsic Defines
- Miscellaneous Keywords
- Modularizing