cppreference.com
搜索
创建账户
登录
名字空间
页面
讨论
变换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
查看
查看
编辑
历史
操作
std::source_location::
column
来自cppreference.com
<
cpp
|
utility
|
source location
C++
语言
标准库头文件
自立与有宿主实现
具名要求
语言支持库
概念库
(C++20)
诊断库
工具库
字符串库
容器库
迭代器库
范围库
(C++20)
算法库
数值库
输入/输出库
本地化库
正则表达式库
(C++11)
原子操作库
(C++11)
线程支持库
(C++11)
文件系统库
(C++17)
技术规范
[编辑]
工具库
类型支持
(基本类型、 RTTI 、类型特性)
动态内存管理
错误处理
程序工具
变参数函数
库特性测试宏
日期和时间
函数对象
格式化库
(C++20)
initializer_list
(C++11)
source_location
(C++20)
bitset
hash
(C++11)
integer_sequence
(C++14)
关系运算符
(C++20 中弃用)
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
比较
(C++20)
three_way_comparable
three_way_comparable_with
strong_ordering
weak_ordering
partial_ordering
common_comparison_category
compare_three_way_result
compare_three_way
strong_order
weak_order
partial_order
compare_strong_order_fallback
compare_weak_order_fallback
compare_partial_order_fallback
is_eq
is_neq
is_lt
is_lteq
is_gt
is_gteq
共用词汇类型
pair
tuple
(C++11)
apply
(C++17)
make_from_tuple
(C++17)
optional
(C++17)
any
(C++17)
variant
(C++17)
swap 、 forward 与 move
swap
exchange
(C++14)
forward
(C++11)
move
(C++11)
move_if_noexcept
(C++11)
初等字符串转换
to_chars
(C++17)
from_chars
(C++17)
chars_format
(C++17)
类型运算
declval
(C++11)
as_const
(C++17)
launder
(C++17)
[编辑]
std::source_location
成员函数
创建
source_location::source_location
source_location::current
域访问
source_location::line
source_location::column
source_location::file_name
source_location::function_name
[编辑]
constexpr
std::
uint_least32_t
column
(
)
const
noexcept
;
(C++20 起)
返回表示从此对象所表示的行起始的偏移的实现定义值(即列号)。列号预设为从 1 开始。
目录
1
参数
2
返回值
3
示例
4
参阅
[
编辑
]
参数
(无)
[
编辑
]
返回值
表示从此对象所表示的行起始的偏移的实现定义值(即列号)。
鼓励实现在列号未知时使用
0
。
[
编辑
]
示例
本节未完成
原因:暂无示例
[
编辑
]
参阅
line
返回此对象所表示的行号
(公开成员函数)
[编辑]
file_name
返回此对象所表示的文件名
(公开成员函数)
[编辑]
function_name
返回此对象表示的函数名,若它存在
(公开成员函数)
[编辑]
文件名与行信息
的
C++ 文档
1个分类
:
Todo no example