☰
C++ Tutorial
C++ - Basic
C++ - Installation
C++ - Variables
C++ - Data Types
C++ - Operators
C++ - Input & Output
BRANCHING
C++ - If - Else
C++ - Switch - Case
LOOPS
C++ - While Loop
C++ - Do - While Loop
C++ - For Loop
C++ - Break
C++ - Continue
DATA TYPES
C++ - Numbers
C++ - Boolean
C++ - Strings
ARRAY
C++ - Arrays
C++ - Iterating Array using ForRange
C++ - Replace Array Elements
LIST
C++ - Lists
C++ - Insert in List
C++ - Remove from List
C++ - Sort List Elements
C++ - Reverse a List
C++ - List Methods
SET
C++ - Set
C++ - Iterating set
C++ - Remove from set
C++ - Set Methods
MAP
C++ - Map
C++ - Insert in Map
C++ - Update Map
C++ - Remove from Map
C++ - Copy from Map
C++ - Map Methods
FUNCTION
C++ - Function
C++ - Function Arguments
C++ - Function Overloading
C++ - Recursion
C++ - Scope
OOPS
C++ - OOPS
C++ - Class and Object
C++ - Getters & Setters
C++ - Constructor
C++ - Inheritance
C++ - Method Overriding
C++ - Abstract classes & Virtual Method
C++ - Polymorphism
C++ - Access Modifiers
POINTER
C++ - Pointers
STRUCTURE
C++ - Structure
ADVANCED
C++ - Operator Overloading
C++ - Namespaces & Using
JAVA
SPRING
SPRINGBOOT
HIBERNATE
HADOOP
HIVE
ALGORITHMS
PYTHON
GO
KOTLIN
C#
RUBY
C++
OTHERS
JAVA
SPRING
SPRINGBOOT
HIBERNATE
HADOOP
HIVE
ALGORITHMS
PYTHON
GO
KOTLIN
C#
RUBY
C++
C++ Tutorial
C++ - Basic
C++ - Installation
C++ - Variables
C++ - Data Types
C++ - Operators
C++ - Input & Output
BRANCHING
C++ - If - Else
C++ - Switch - Case
LOOPS
C++ - While Loop
C++ - Do - While Loop
C++ - For Loop
C++ - Break
C++ - Continue
DATA TYPES
C++ - Numbers
C++ - Boolean
C++ - Strings
ARRAY
C++ - Arrays
C++ - Iterating Array using ForRange
C++ - Replace Array Elements
LIST
C++ - Lists
C++ - Insert in List
C++ - Remove from List
C++ - Sort List Elements
C++ - Reverse a List
C++ - List Methods
SET
C++ - Set
C++ - Iterating set
C++ - Remove from set
C++ - Set Methods
MAP
C++ - Map
C++ - Insert in Map
C++ - Update Map
C++ - Remove from Map
C++ - Copy from Map
C++ - Map Methods
FUNCTION
C++ - Function
C++ - Function Arguments
C++ - Function Overloading
C++ - Recursion
C++ - Scope
OOPS
C++ - OOPS
C++ - Class and Object
C++ - Getters & Setters
C++ - Constructor
C++ - Inheritance
C++ - Method Overriding
C++ - Abstract classes & Virtual Method
C++ - Polymorphism
C++ - Access Modifiers
POINTER
C++ - Pointers
STRUCTURE
C++ - Structure
ADVANCED
C++ - Operator Overloading
C++ - Namespaces & Using
❮❮ PREV
NEXT ❯❯
C++
-
LIST METHODS
Methods used in Lists
Although
, we have described all the
Methods
above. Below is the
List
.
Method
Description
push_back()
Used to insert a new element at the end of the List.
push_front()
Used to insert a new element at the beginning of the List.
remove()
Used to remove an element from the List based on its name.
pop_back()
Used to remove an element from the end of the List.
pop_front()
Used to remove an element from the beginning of the List.
reverse()
Used to reverse a List
size()
Used to give us the number of elements in the List.
clear()
Used to remove all the elements from the List.
sort()
Used to sort a List in Ascending order.
back()
Used to get the last element of the List.
front()
Used to get the first element of the List.
empty()
Used to check if a List is empty or not.
❮❮ PREV
NEXT ❯❯