i want pass pointer to bitset to function argument,i'm declaring bitset on heap memory:
std::bitset<size> *ptr;
ptr = new std::bitset<size>();
void function('here i want pass the pointer '){
}
i want pass pointer to bitset to function argument,i'm declaring bitset on heap memory:
std::bitset<size> *ptr;
ptr = new std::bitset<size>();
void function('here i want pass the pointer '){
}
 
    
    Pretty directly, just receive the right type:
#include <bitset>
const int size = 8;
void function(std::bitset<size>* ptr)
{
}
int main()
{
    std::bitset<size> *ptr;
    ptr = new std::bitset<size>();
    function(ptr);
}
