Click here to Skip to main content
14,265,813 members

C / C++ / MFC

 
GeneralRe: Unexpected sequence of cout / perror in console output Pin
leon de boer11-Mar-19 18:10
memberleon de boer11-Mar-19 18:10 
QuestionC Programming[Solved] Pin
Evolt_Pratom9-Mar-19 1:07
memberEvolt_Pratom9-Mar-19 1:07 
AnswerRe: C Programming Pin
Richard MacCutchan9-Mar-19 1:27
protectorRichard MacCutchan9-Mar-19 1:27 
GeneralRe: C Programming Pin
k50549-Mar-19 4:27
memberk50549-Mar-19 4:27 
GeneralRe: C Programming Pin
Richard MacCutchan9-Mar-19 5:16
protectorRichard MacCutchan9-Mar-19 5:16 
GeneralRe: C Programming Pin
Evolt_Pratom10-Mar-19 3:42
memberEvolt_Pratom10-Mar-19 3:42 
GeneralRe: C Programming Pin
Richard MacCutchan10-Mar-19 7:02
protectorRichard MacCutchan10-Mar-19 7:02 
Questiontemplate confusion Pin
Rw2377-Mar-19 13:00
memberRw2377-Mar-19 13:00 
Learning programmer need some help. I understand c++ Classes and I used to think I understood namespaces. But while trying to learn templates I'm getting kinda confused what is going on with this template example.

template <typename CharT, typename Traits, typename Alloc>
const CharT* std::basic_string< CharT, Traits, Alloc >::c_str() const [inline]

//and later the definition of the member function c_str()
const _CharT* c_str() const { return _M_data(); }

(a) Do you call the first line the template declaration?
(b) Do you call the second line the template implementation or definition?
(c) It appears to be a scope resolution :: to the member function c_str() but what is the [inline] bracket syntax?

(d)Also I assume the < CharT, Traits, Alloc > are defined in the header (elsewhere) with some value (overloaded or not)?

Just anywhere you can illuminate what I'm missing on the concept.
AnswerRe: template confusion Pin
Rw2378-Mar-19 2:37
memberRw2378-Mar-19 2:37 
GeneralRe: template confusion Pin
Richard MacCutchan8-Mar-19 4:01
protectorRichard MacCutchan8-Mar-19 4:01 
GeneralRe: template confusion Pin
Victor Nijegorodov8-Mar-19 6:21
memberVictor Nijegorodov8-Mar-19 6:21 
GeneralRe: template confusion Pin
Rw2379-Mar-19 6:08
memberRw2379-Mar-19 6:08 
GeneralRe: template confusion Pin
k50548-Mar-19 6:50
memberk50548-Mar-19 6:50 
GeneralRe: template confusion Pin
Rw2379-Mar-19 5:57
memberRw2379-Mar-19 5:57 
QuestionAero snap with CDockablePane Pin
jung-kreidler7-Mar-19 3:51
memberjung-kreidler7-Mar-19 3:51 
AnswerRe: Aero snap with CDockablePane Pin
_Flaviu12-Mar-19 22:49
member_Flaviu12-Mar-19 22:49 
GeneralRe: Aero snap with CDockablePane Pin
jung-kreidler12-Mar-19 23:31
memberjung-kreidler12-Mar-19 23:31 
QuestionHow to run the C++ app on cluster? Pin
oleg635-Mar-19 6:39
professionaloleg635-Mar-19 6:39 
QuestionRe: How to run the C++ app on cluster? Pin
David Crow5-Mar-19 6:58
memberDavid Crow5-Mar-19 6:58 
AnswerRe: How to run the C++ app on cluster? Pin
oleg635-Mar-19 7:04
professionaloleg635-Mar-19 7:04 
QuestionRe: How to run the C++ app on cluster? Pin
David Crow5-Mar-19 7:05
memberDavid Crow5-Mar-19 7:05 
AnswerRe: How to run the C++ app on cluster? Pin
oleg635-Mar-19 7:09
professionaloleg635-Mar-19 7:09 
SuggestionRe: How to run the C++ app on cluster? Pin
David Crow5-Mar-19 7:10
memberDavid Crow5-Mar-19 7:10 
AnswerRe: How to run the C++ app on cluster? Pin
jung-kreidler7-Mar-19 3:54
memberjung-kreidler7-Mar-19 3:54 
GeneralRe: How to run the C++ app on cluster? Pin
oleg637-Mar-19 4:12
professionaloleg637-Mar-19 4:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.