1. Ro‘yxat (forward list va list); Tasodifiy kirish konteynerlari (deque, vector va array); Statik va dinamik massivlar


Download 42.88 Kb.
bet6/6
Sana15.06.2023
Hajmi42.88 Kb.
#1482115
1   2   3   4   5   6
Bog'liq
3-mavzu Chiziqli Konteynerlar OK











Members

array

vector

deque

forward_list

list




constructor

implicit

vector

deque

forward_list

list

destructor

implicit

~vector

~deque

~forward_list

~list

operator=

implicit

operator=

operator=

operator=

operator=

iterators

begin

begin

begin

begin

beginbefore_begin

begin

end

end

end

end

end

end

rbegin

rbegin

rbegin

rbegin


rbegin

rend

rend

rend

rend


rend

const iterators

cbegin

cbegin

cbegin

cbegin

cbegincbefore_begin

cbegin

cend

cend

cend

cend

cend

cend

crbegin

crbegin

crbegin

crbegin


crbegin

crend

crend

crend

crend


crend

capacity

size

size

size

size


size

max_size

max_size

max_size

max_size

max_size

max_size

empty

empty

empty

empty

empty

empty

resize


resize

resize

resize

resize

shrink_to_




shrink_to_

shrink_to_







fit




fit

fit







capacity


capacity








reserve


reserve








element access

front

front

front

front

front

front

back

back

back

back


back

operator[]

operator[]

operator[]

operator[]







at

at

at

at







assign


assign

assign

assign

assign

modifiers

emplace


emplace

emplace

emplace_after

emplace

insert


insert

insert

insert_after

insert

erase


erase

erase

erase_after

erase

emplace_back


emplace_back

emplace_back


emplace_back

push_back


push_back

push_back


push_back

pop_back


pop_back

pop_back


pop_back

emplace_front



emplace_front

emplace_front

emplace_front

push_front



push_front

push_front

push_front

pop_front



pop_front

pop_front

pop_front

clear


clear

clear

clear

clear

swap

swap

swap

swap

swap

swap

list operations

splice




splice_after

splice

remove




remove

remove

remove_if




remove_if

remove_if

unique




unique

unique

merge




merge

merge

sort




sort

sort

reverse




reverse

reverse

observers

get_allocator


get_allocator

get_allocator

get_allocator

get_allocator

data

data

data












NAZARIY BILIMLARNI TEKSHIRISH UCHUN SAVOLLAR.

  1. Iteratorda begin(), end(), cbegin(), cend(), rbegin(), rend(), crbegin() va crend() erkin funksiyalari nimalarini aniqlashi mumkin?

  2. Chiziqli konteynerlarni belgilangan qiymatlardan qaysi funksiyasini chaqirib to‘ldirish mumkin?

  3. Barcha konteynerlarni tenglik va tengsizlik uchun taqqoslash mumkin va ularning mazmunini qanday funksiya yordamida almashtirish mumkin?

  4. Allocator nima uchun ishlatiladi?

  5. Allocator xotirani boshqarishning minimal birligini belgilaydigan va bir qator yor damchi taʻriflarni taqdim etadigan element tipiga bog‘liqdir.

  6. Bu vazifa nechta va qanday asosiy funksiyalari yordamida amalga oshiriladi?

  7. Bir bog‘lamli ro‘yxatning nimalarini yaratish uchun A::rebind orqali yaratilgan allokatorday foydalaniladi?

  8. Qaysi funksiyasidan foydalanib, elementlarni oldindan joylashtirish mumkin.

  9. Ikki bog‘lamli ro‘yxat va ikki tomonlama navbatning farqlarini sanab bering?

  10. Dinamik va static massivlarning o‘xshash tomonlarini misollar yordamida tushuntirib bering?

  11. Statik massiv elementlarni kiritish yoki o‘chirish uchun qanday funksiyalar aniqlangan.

Download 42.88 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling