By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,750 Members | 1,221 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,750 IT Pros & Developers. It's quick & easy.

What is .tcc?

P: n/a
Where is there some documentation about this suffix?

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
jsnX schrieb:
Where is there some documentation about this suffix?

It's not standardised. Some use .tcc (t = template, cc = C++ source),
some use .icc (i = included, cc = C++ source), some use .h (but that
makes it indistinguishable from "real" headers), some just don't use an
extra file at all. It's usually a file that contains implementations of
templates declared in a header that then #includes the .tcc (or
whatever) file. But as there is no standard nor a general consense
about this, it could be anything else as well.
It's just an artifact of the need to have template definitions visible
in all translation units that use them with most compilers:


template< typename T > void f();

#include "example.tcc"


# error Don't include this file directly, include example.hpp instead

template< typename T > void f()
// stuff

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.