tg-me.com/learncpp/1778
Last Update:
#cmap #map.h #map
🔵مپ(map)
🔹کتابخانه map
⚠️ادامه پست قبلی
www.tg-me.com/Learncpp/1777
🔹انواع عضو
1️⃣ اولین پارامتر الگو(Key)Key_type
2️⃣ دومین پارامتر الگو(T) mapped_type
3️⃣ سومین نوع عضو(value_type)pair<const key_type,mapped_type>
4️⃣ سومین پارامتر الگو(Compare)key_compare
◀️ یادداشت:
پیش فرض برای:
less<key_type>
5️⃣ کلاس تابع تو در تو برای مقایسه کردنvalue_compare
◀️ یادداشت:
مشاهده کنید:value_comp
6️⃣ چهارمین پارامتر الگو(Alloc) allocator_type
◀️ یادداشت:
پیش فرض برای:allocator<value_type>
7️⃣ هفتمین نوع عضو(refrence)allocator_type::refence
◀️ یادداشت:
برای اختصاص دهنده پیش فرض:const value_type&
8️⃣ هشتمین نوع عضو(const_refrence)allocator_type::const_reference
◀️ یادداشت:
برای اختصاص دهنده پیش فرض:const value_type&
9️⃣ نهمین نوع عضو(pointer)
allocator_type::pointer
◀️ یادداشت:
برای اختصاص دهنده پیش فرض:value_type*
🔟 دهمین نوع عضو(const_pointer)allocator_type::const_pointer
◀️ یادداشت:
برای اختصاص دهنده پیش فرض:
const_value_type*
1️⃣1️⃣ یازدهمین نوع عضو(iterator)
یک iterator دو طرفه برای value_type
◀️ یادداشت:
قابل تبدیل به const_iterator
2️⃣1️⃣ دوازدهمین نوع عضو(const_iterator) یک iterator دو طرفه برای const value_type
3️⃣1️⃣ سیزدهمین نوع عضو(reserve_iterator)reverse_iterator<iterator>
4️⃣1️⃣ چهاردهمین نوع عضو(const_reserve_iterator) reverse_iterator<const_iterator>
5️⃣1️⃣ پانزدهمین نوع عضو(diffrent_type) یک نوع جدایی ناپذیر علامت دار همانند:iterator_traits<iterator>::difference_type
◀️ یادداشت:
معمولا مشابه ptrdiff_t
6️⃣1️⃣ شانزدهمین عضو(size_type)
یک نوع جدایی ناپذیر بدون علامت که می تواند هر مقدار غیر منفی از difference_type را نمایش دهد.
◀️ یادداشت:
معمولا مشابه size_t
🔰ترجمه شده از سایت
www.cplusplus.com
@Learncpp
BY Learning ©➕➕
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Share with your friend now:
tg-me.com/learncpp/1778