সি++ pop_front
🌈সি++ pop_front কি?
📋সি++ pop_front হলো প্রথম মান অপসারণ করার পদ্ধতি।
⚒️সি++ pop_front প্রথম মান অপসারণ করতে ব্যবহৃত হয়।
সি++ pop_front প্রথম মান অপসারণ করার উদাহরণ।
cpp
#include <iostream>
#include <list>
using namespace std;
int main() {
list<string> fruits = {"আপেল", "আঙ্গুর", "কমলা", "কলা"};
fruits.pop_front();
for (string fruit : fruits) {
cout << fruit << " ";
}
}