@@ -296,7 +296,7 @@ struct __forward_node_traits {
296
296
# endif
297
297
298
298
_LIBCPP_HIDE_FROM_ABI static __begin_node_pointer __as_iter_node (__node_pointer __p) {
299
- return static_cast <__begin_node_pointer>(static_cast <__void_pointer>( __p) );
299
+ return static_cast <__begin_node_pointer>(__p);
300
300
}
301
301
};
302
302
@@ -363,12 +363,8 @@ class _LIBCPP_TEMPLATE_VIS __forward_list_iterator {
363
363
364
364
__begin_node_pointer __ptr_;
365
365
366
- _LIBCPP_HIDE_FROM_ABI __begin_node_pointer __get_begin () const {
367
- return static_cast <__begin_node_pointer>(static_cast <__void_pointer>(__ptr_));
368
- }
369
- _LIBCPP_HIDE_FROM_ABI __node_pointer __get_unsafe_node_pointer () const {
370
- return static_cast <__node_pointer>(static_cast <__void_pointer>(__ptr_));
371
- }
366
+ _LIBCPP_HIDE_FROM_ABI __begin_node_pointer __get_begin () const { return __ptr_; }
367
+ _LIBCPP_HIDE_FROM_ABI __node_pointer __get_unsafe_node_pointer () const { return static_cast <__node_pointer>(__ptr_); }
372
368
373
369
_LIBCPP_HIDE_FROM_ABI explicit __forward_list_iterator (nullptr_t ) _NOEXCEPT : __ptr_(nullptr ) {}
374
370
@@ -427,12 +423,8 @@ class _LIBCPP_TEMPLATE_VIS __forward_list_const_iterator {
427
423
428
424
__begin_node_pointer __ptr_;
429
425
430
- _LIBCPP_HIDE_FROM_ABI __begin_node_pointer __get_begin () const {
431
- return static_cast <__begin_node_pointer>(static_cast <__void_pointer>(__ptr_));
432
- }
433
- _LIBCPP_HIDE_FROM_ABI __node_pointer __get_unsafe_node_pointer () const {
434
- return static_cast <__node_pointer>(static_cast <__void_pointer>(__ptr_));
435
- }
426
+ _LIBCPP_HIDE_FROM_ABI __begin_node_pointer __get_begin () const { return __ptr_; }
427
+ _LIBCPP_HIDE_FROM_ABI __node_pointer __get_unsafe_node_pointer () const { return static_cast <__node_pointer>(__ptr_); }
436
428
437
429
_LIBCPP_HIDE_FROM_ABI explicit __forward_list_const_iterator (nullptr_t ) _NOEXCEPT : __ptr_(nullptr ) {}
438
430
0 commit comments