Blackjack
Loading...
Searching...
No Matches
Functions
card.cpp File Reference

Defines member and friend functions of Card. More...

#include "card.h"

Functions

std::ostream & operator<< (std::ostream &out, const Card &card)
 

Detailed Description

Defines member and friend functions of Card.

Author
DSN
Version
0.3
Date
2023-08-19

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  out,
const Card card 
)

This function is declared as a friend of Card so that we can directly access its private members: m_rank and m_suit.