Skip to content

Make __cccl_is_floating_point_v consistent with __cccl_is_integer_v#6952

Merged
davebayer merged 1 commit intoNVIDIA:mainfrom
davebayer:make_cccl_is_floating_point_consistent
Dec 11, 2025
Merged

Make __cccl_is_floating_point_v consistent with __cccl_is_integer_v#6952
davebayer merged 1 commit intoNVIDIA:mainfrom
davebayer:make_cccl_is_floating_point_consistent

Conversation

@davebayer
Copy link
Contributor

We have __cccl_is_integer_v which checks if a type is cv unqualified integer type. Let's have the same thing for floating point types.

@davebayer davebayer requested a review from a team as a code owner December 11, 2025 14:14
@davebayer davebayer requested a review from wmaxey December 11, 2025 14:14
@github-project-automation github-project-automation bot moved this to Todo in CCCL Dec 11, 2025
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Dec 11, 2025
@davebayer davebayer enabled auto-merge (squash) December 11, 2025 15:17
@bernhardmgruber
Copy link
Contributor

Does the PR actually change anything beyond a few renamings?

@davebayer
Copy link
Contributor Author

davebayer commented Dec 11, 2025

@bernhardmgruber no, I think it could be useful in #6951 if we want cv unqualified is_floating_point_v, we already do the same thing with __cccl_is_integer_v


template <class _Tp>
inline constexpr bool is_floating_point_v = __cccl_is_floating_point_helper_v<remove_cv_t<_Tp>>;
inline constexpr bool is_floating_point_v = __cccl_is_floating_point_v<remove_cv_t<_Tp>>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davebayer but the old implementation already did remove_cv_t, so what's the new behavior of this PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the purpose of the PR is to make the naming consistent, which makes sense

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just to make __cccl_is_floating_point_v usable in the codebase

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, I thought you meant is_floating_point_v. Sorry, all good!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a cosmetic change..

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 4h 43m: Pass: 100%/91 | Total: 3d 23h | Max: 3h 09m | Hits: 23%/215191

See results here.

@davebayer davebayer merged commit 85901c8 into NVIDIA:main Dec 11, 2025
211 of 214 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in CCCL Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants