[webkit-dev] NeverNull<T>

Joe Mason joe.mason at torchmobile.com
Tue Jul 28 15:57:58 PDT 2009

Eric Seidel wrote:
> Could get nasty when interacting with other templates though.  I don't 
> think we want a NeverNullOwnPtr, or maybe we do?
> Does this seem useful to anyone else?  Oh c++ experts, does this even 
> seem possible, seem like it would perform well, not bloat the code size, 
> etc?

NeverNull< OwnPtr<Foo> > should work as long as OwnPtr<T> has 
pointer-like semantics.

I like to just use references for this, but that only works for simple 


More information about the webkit-dev mailing list