unordered_multimap::empty

unordered_multimap::empty (비어 있는지 확인)

empty()는 컨테이너에 요소가 하나도 없는지 검사해요. begin() == end()인지와 같은 의미예요.

출처: cppreference

본문

empty는 컨테이너에 요소가 없는지 검사해요. 즉 begin() == end()인지 확인하는 것과 같아요.

bool empty() const noexcept;

반환값 (Return value)

컨테이너가 비어 있으면 true, 그렇지 않으면 false를 돌려줘요.

복잡도 (Complexity)

상수 시간이에요.

더 알아보기 (Learn more)

cppreference