Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about reinterpret-cast

Read more about reinterpret-cast

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - reinterpret-cast

Get class member from next member's address

I'm wrapping a C interface and require to pass into it the address of a preallocated buffer. My wrapper places this buffer at a known location within wrapper object A. At runtime, I will be able to qu...
test-img

glades

c++

c++17

wrapper

reinterpret-cast

class-members

Votes: 0

Answers: 0

pointer type dependent on if else conditional

Currently, I have code that looks like below: template <class T> void func(const Tensor& input) { T* ptr = input.get_ptr(); // we do some stuff with ptr below } I want to change the c...
test-img

roulette01

c++

pointers

reinterpret-cast

Votes: 0

Answers: 0

Understanding UB and pointer-arithmetic

I have a generic reference-counted heap-allocated wrapper class. So my class is basically just a pointer: template <typename T> class Refcounted { struct model { std::atomic<std:...
test-img

Ben

c++

undefined-behavior

pointer-arithmetic

reinterpret-cast

Votes: 0

Answers: 0

use of reinterpret_cast while reading value from binary file

Let's suppose head1 is an 2D array of float and I want to fill it with values read from the binary file file. After opening the file with ifstream file ("myfile.bin", ios::in|ios::binary); I...
test-img

holdtheline

c++

reinterpret-cast

Votes: 0

Answers: 0

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved