C++ 집합 empty()

Jmnote (토론 | 기여)님의 2023년 9월 9일 (토) 17:55 판 (→‎같이 보기)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

C++ 집합 empty()
#include <iostream>
#include <set>
using namespace std;

int main() {
    set<string> s;
    cout << s.empty() << endl; // 1
    s.insert("apple");
    cout << s.empty() << endl; // 0
}

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}