std:: formatter <std::priority_queue>
|
헤더에 정의됨
<queue>
|
||
|
template
<
class
CharT,
class
T,
std::
formattable
<
CharT
>
Container,
class
...
U
>
struct formatter < std:: priority_queue < T, Container, U... > , CharT > ; |
(C++23부터) | |
컨테이너 어댑터 타입 std::formatter 의 템플릿 특수화는 사용자가 std::priority_queue 의 기본 컨테이너를 서식 지정 함수 를 사용하여 요소들의 컬렉션으로 텍스트 표현으로 변환할 수 있게 합니다.
이 특수화는 std:: formattable < Container, CharT > 가 true 인 경우에 활성화됩니다.
목차 |
멤버 타입
| 이름 | 정의 |
maybe-const-container
|
fmt-maybe-const
<
Container, CharT
>
( 설명 전용 멤버 타입* ) |
maybe-const-adaptor
|
maybe-const
<
std::
is_const_v
<
maybe-const-container
>
,
std::
priority_queue
<
T, Container, U...
>>
( 설명 전용 멤버 타입* ) |
데이터 멤버
| 이름 | 정의 |
underlying_
|
std::
formatter
<
ranges::
ref_view
<
maybe-const-container
>
, CharT
>
타입의 기본 포매터
( 설명 전용 멤버 객체* ) |
멤버 함수
|
parse
|
range-format-spec
에 지정된 대로 형식 지정자를 구문 분석합니다
(public member function) |
|
format
|
range-format-spec
에 지정된 대로 범위 형식화된 출력을 작성합니다
(public member function) |
std::formatter<std::priority_queue>:: parse
|
template
<
class
ParseContext
>
constexpr auto parse ( ParseContext & ctx ) - > ParseContext :: iterator ; |
||
underlying_.parse(ctx)
와 동등합니다.
Return value
기반 컨테이너의 range-format-spec 끝을 지난 반복자입니다.
std::formatter<std::priority_queue>:: format
|
template
<
class
FormatContext
>
auto
format
(
/*maybe-const-adaptor*/
&
r, FormatContext
&
ctx
)
const
|
||
다음 코드와 동일합니다:
return
underlying_
.
format
(
r.
c
, ctx
)
;
.
반환 값
출력 범위의 끝을 지난 반복자입니다.
예제
|
이 섹션은 불완전합니다
이유: 예제 없음 |
참고 항목
|
(C++20)
|
주어진 타입에 대한 포맷팅 규칙을 정의함
(클래스 템플릿) |
|
(C++23)
|
범위 타입에 대한
std::formatter
특수화 구현을 지원하는 클래스 템플릿
(클래스 템플릿) |